[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDisplayFormat.HorizontalAlignment

HorizontalAlignment Property

HorizontalAlignment

Gets a value that represents the horizontal alignment of the associated range object as displayed in the current user interface.

Use this property to retrieve the effective horizontal alignment shown in the user interface, which can differ from the corresponding IRange property when conditional formatting or table styles are applied.

Declaration
HorizontalAlignment HorizontalAlignment { get; }
ReadOnly Property HorizontalAlignment As HorizontalAlignment
Examples
IRange range = worksheet.Range["A1"];
range.Value = "Test";
range.HorizontalAlignment = HorizontalAlignment.Center;
HorizontalAlignment alignment = range.DisplayFormat.HorizontalAlignment;