Spread Windows Forms 11.0 Product Documentation
AlignVert Property (PSObject)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > PSObject Class : AlignVert Property
Gets or sets the vertical alignment of the contents of the element.
Syntax
'Declaration
 
Public Overrides Property AlignVert As VerticalAlignment
'Usage
 
Dim instance As PSObject
Dim value As VerticalAlignment
 
instance.AlignVert = value
 
value = instance.AlignVert
public override VerticalAlignment AlignVert {get; set;}

Property Value

VerticalAlignment setting that determines the alignment of text
Remarks
This property is available at run time only. The alignment area for a non-rectangle shape in Spread is the shape boundary.
Example
This example aligns the text.
fpSpread1.Sheets[0].Cells[1, 3].Text = "Test";
FarPoint.Win.Spread.DrawingSpace.RectangleShape a = new FarPoint.Win.Spread.DrawingSpace.RectangleShape();
a.AlignHorz = FarPoint.Win.HorizontalAlignment.Right;
a.AlignVert = FarPoint.Win.VerticalAlignment.Bottom;
a.BackColor = Color.Blue;
a.Text = "Test";
a.CanRenderText = true;
fpSpread1.ActiveSheet.AddShape(a, 1, 1);
fpSpread1.Sheets(0).Cells(1, 3).Text = "Test"
Dim a As New FarPoint.Win.Spread.DrawingSpace.RectangleShape()
a.AlignHorz = FarPoint.Win.HorizontalAlignment.Right
a.AlignVert = FarPoint.Win.VerticalAlignment.Bottom
a.BackColor = Color.Yellow
a.Text = "Test"
a.CanRenderText = True
fpSpread1.ActiveSheet.AddShape(a, 1, 1)
See Also

Reference

PSObject Class
PSObject Members