Spread Windows Forms 9.0 Product Documentation
AllowEditorVerticalAlign Property (EditBaseCellType)
Example 


Gets or sets whether to allow editor vertical align.
Syntax
'Declaration
 
Public Property AllowEditorVerticalAlign As Boolean
'Usage
 
Dim instance As EditBaseCellType
Dim value As Boolean
 
instance.AllowEditorVerticalAlign = value
 
value = instance.AllowEditorVerticalAlign
public bool AllowEditorVerticalAlign {get; set;}
Example
This example sets the AllowEditorVerticalAlign property.
fpSpread1.Sheets[0].Cells[0, 0].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
fpSpread1.Sheets[0].Cells[0, 0].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Bottom;
FarPoint.Win.Spread.CellType.TextCellType txt = new FarPoint.Win.Spread.CellType.TextCellType();
txt.AllowEditorVerticalAlign = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = txt;  
fpSpread1.Sheets[0].Cells[0, 0].Text = "test";
FpSpread1.Sheets(0).Cells(0, 0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right
FpSpread1.Sheets(0).Cells(0, 0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Bottom
Dim txt As New FarPoint.Win.Spread.CellType.TextCellType()
txt.AllowEditorVerticalAlign = True
FpSpread1.Sheets(0).Cells(0, 0).CellType = txt;
FpSpread1.Sheets(0).Cells(0, 0).Text = "test"
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

EditBaseCellType Class
EditBaseCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.