Spread Windows Forms 8.0 Product Documentation
TextOrientation Property (ButtonCellType)
Example 


Gets or sets how text orients itself when painting the cell.
Syntax
'Declaration
 
Public Property TextOrientation As TextOrientation
'Usage
 
Dim instance As ButtonCellType
Dim value As TextOrientation
 
instance.TextOrientation = value
 
value = instance.TextOrientation
public TextOrientation TextOrientation {get; set;}

Property Value

TextOrientation setting that determines how text is oriented
Remarks

The orientation settings are shown here:

Orientation Example Appearance
TextHorizontal

TextHorizontalFlipped

TextVertical

TextVerticalFlipped

TextTopDown

TextTopDownRTL

Example
This example sets the TextOrientation property.
FarPoint.Win.Spread.CellType.ButtonCellType butncell = new FarPoint.Win.Spread.CellType.ButtonCellType();
butncell.Text = "Click";
butncell.TextOrientation = FarPoint.Win.TextOrientation.TextVertical;        
fpSpread1.Sheets[0].Cells[2, 2].CellType = butncell;
Dim butncell As New FarPoint.Win.Spread.CellType.ButtonCellType()
butncell.Text = "Click"
butncell.TextOrientation = FarPoint.Win.TextOrientation.TextVertical
FpSpread1.Sheets(0).Cells(2, 2).CellType = butncell
Requirements

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

See Also

Reference

ButtonCellType Class
ButtonCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.