Class GridColWidth
ColWidths are managed by the GridColWidthCollection.
Inheritance
System.Object
GridColWidth
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridColWidth
Constructors
GridColWidth()
Initializes a new instance of GridColWidthclass.
Declaration
public GridColWidth()
GridColWidth(Int32)
Initializes a new instance of GridColWidthclass.
Declaration
public GridColWidth(int colIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | colIndex | Column index. |
GridColWidth(Int32, Int32)
Initializes the new instances of GridColWidthclass.
Declaration
public GridColWidth(int colIndex, int width)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | colIndex | Column index. |
System.Int32 | width | Width for the column. |
Properties
ColIndex
Gets or sets the ColIndex.
Declaration
public int ColIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
Width
Gets or sets the col width.
Declaration
public int Width { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
Overrides
System.Object.GetHashCode()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()