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


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)
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

PSObject Class
PSObject Members

 

 


Copyright © GrapeCity, inc. All rights reserved.