Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / EditBaseCellType Class / AllowEditorVerticalAlign Property
Example


In This Topic
    AllowEditorVerticalAlign Property (EditBaseCellType)
    In This Topic
    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"
    See Also