GrapeCity.Windows.SpreadSheet.Data Namespace > StyleInfo Class : TextIndent Property |
'Declaration <System.ComponentModel.DefaultValueAttribute()> Public Property TextIndent As System.Integer
'Usage Dim instance As StyleInfo Dim value As System.Integer instance.TextIndent = value value = instance.TextIndent
[System.ComponentModel.DefaultValue()] public System.int TextIndent {get; set;}
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | The assigned value is less than 0. |
gcSpreadSheet1.Sheets[0].NamedStyles.Add(new GrapeCity.Windows.SpreadSheet.Data.StyleInfo() { Background = new SolidColorBrush(Colors.Red), Name = "aaa", VerticalAlignment = GrapeCity.Windows.SpreadSheet.Data.CellVerticalAlignment.Center} ); gcSpreadSheet1.Sheets[0].NamedStyles.Add(new GrapeCity.Windows.SpreadSheet.Data.StyleInfo() { Background = new SolidColorBrush(Colors.Blue), Name = "ParentStyle", TextIndent = 5}); gcSpreadSheet1.Sheets[0].Cells[0, 0].StyleName = "aaa"; gcSpreadSheet1.Sheets[0].Cells[0, 0].ParentStyleName = "ParentStyle"; gcSpreadSheet1.Invalidate();
GcSpreadSheet1.Sheets(0).NamedStyles.Add(New GrapeCity.Windows.SpreadSheet.Data.StyleInfo() With {.Background = New SolidColorBrush(Colors.Red), .Name = "aaa", .VerticalAlignment = GrapeCity.Windows.SpreadSheet.Data.CellVerticalAlignment.Center}) GcSpreadSheet1.Sheets(0).NamedStyles.Add(New GrapeCity.Windows.SpreadSheet.Data.StyleInfo() With {.Background = New SolidColorBrush(Colors.Blue), .Name = "ParentStyle", .TextIndent = 5}) GcSpreadSheet1.Sheets(0).Cells(0, 0).StyleName = "aaa" GcSpreadSheet1.Sheets(0).Cells(0, 0).ParentStyleName = "ParentStyle" GcSpreadSheet1.Invalidate()
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)