[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IStyle.IncludeAlignment

IncludeAlignment Property

IncludeAlignment

Gets or sets whether style includes the IStyle.AddIndent, IStyle.HorizontalAlignment, IStyle.VerticalAlignment, IStyle.WrapText, and IStyle.Orientation properties.

Use this property to control or inspect whether alignment-related settings participate when the style is applied.

Declaration
bool IncludeAlignment { get; set; }
Property IncludeAlignment As Boolean
Examples
IStyle style = workbook.Styles.Add("alignmentStyle");
style.HorizontalAlignment = HorizontalAlignment.Right;
style.IncludeAlignment = false;
worksheet.Range["A1"].Style = style;
bool includeAlignment = style.IncludeAlignment;