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


Gets or sets the horizontal alignment of the contents of the element.
Syntax
'Declaration
 
Public Overrides Property AlignHorz As HorizontalAlignment
'Usage
 
Dim instance As PSObject
Dim value As HorizontalAlignment
 
instance.AlignHorz = value
 
value = instance.AlignHorz
public override HorizontalAlignment AlignHorz {get; set;}

Property Value

HorizontalAlignment setting that determines the alignment
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.