ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / ColumnBase Class / Align Property






In This Topic
    Align Property (ColumnBase)
    In This Topic
    Gets or sets the horizontal alignment of items in this column.
    Syntax
    'Declaration
     
    
    Public Property Align As System.String
    'Usage
     
    
    Dim instance As ColumnBase
    Dim value As System.String
     
    instance.Align = value
     
    value = instance.Align
    public System.string Align {get; set;}
    public read-write property Align: System.String; 
    public function get,set Align : System.String
    public: __property System.string* get_Align();
    public: __property void set_Align( 
       System.string* value
    );
    public:
    property System.String^ Align {
       System.String^ get();
       void set (    System.String^ value);
    }
    Remarks
    The default value for this property is null, which causes the grid to select the alignment automatically based on column's dataType (numbers are right-aligned, boolean values are centered, other types are left-aligned).If you want to override the default alignment, set this property to 'left', 'right', or 'center'.
    See Also