Spread Windows Forms 9.0 Product Documentation
TextIndent Property (Appearance)
Example 


Gets or sets the amount to indent the text in a cell.
Syntax
'Declaration
 
Public Property TextIndent As Integer
'Usage
 
Dim instance As Appearance
Dim value As Integer
 
instance.TextIndent = value
 
value = instance.TextIndent
public int TextIndent {get; set;}

Property Value

Integer number of pixels to indent the text
Example
This example creates a new appearance.
FarPoint.Win.Spread.Appearance appr = new FarPoint.Win.Spread.Appearance(Color.Beige, Color.Blue, new Font("Comic Sans MS",
10), FarPoint.Win.Spread.CellHorizontalAlignment.Distributed, FarPoint.Win.Spread.CellVerticalAlignment.Distributed, true,
true, Color.Bisque, Color.Brown, Color.Red, 
Color.Yellow, FarPoint.Win.VisualStyles.Off, FarPoint.Win.Spread.SortState.None, FarPoint.Win.Spread.FilterState.None, true,
true, false, false); 
appr.ContainsSelection = false; 
appr.TextIndent = 20; 
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); 
si.SetAppearance(appr); 
fpSpread1.ActiveSheet.SetStyleInfo(-1, -1, si); 
Dim appr As New FarPoint.Win.Spread.Appearance(Color.Beige, Color.Blue, New Font("Comic Sans MS", 10), FarPoint.Win.Spread.CellHorizontalAlignment.Distributed,
FarPoint.Win.Spread.CellVerticalAlignment.Distributed, True, True, Color.Bisque, Color.Brown, Color.Red, Color.Yellow, FarPoint.Win.VisualStyles.Off,
FarPoint.Win.Spread.SortState.None, FarPoint.Win.Spread.FilterState.None, True, True, False, False)
appr.ContainsSelection = False
appr.TextIndent = 20
Dim si As New FarPoint.Win.Spread.StyleInfo
si.SetAppearance(appr)
FpSpread1.ActiveSheet.SetStyleInfo(-1, -1, si)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

Appearance Class
Appearance Members

 

 


Copyright © GrapeCity, inc. All rights reserved.