Class ColumnResizingController
Represents a class that provides the controller for resizing the grid columns.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Interactivity
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class ColumnResizingController : IDisposable
Constructors
ColumnResizingController(SfDataGrid)
Initializes a new instance of the ColumnResizingController class.
Declaration
public ColumnResizingController(SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The SfDataGrid. |
Properties
ResizingCursor
Gets or sets the cursor for resizing the columns.
Declaration
public Cursor ResizingCursor { get; set; }
Property Value
Type |
---|
System.Windows.Forms.Cursor |
UnhideCursor
Gets or sets the cursor for resizing the hidden column.
Declaration
public Cursor UnhideCursor { get; set; }
Property Value
Type |
---|
System.Windows.Forms.Cursor |
Methods
Dispose()
Disposes of the resources used by the
Declaration
public void Dispose()
Dispose(Boolean)
Disposes of the resources used by the
Declaration
protected virtual void Dispose(bool isDispose)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDispose | Indicates whether the call is from the Dispose method. |
HitTest(Point, out Cursor)
Performs the HitTest and returns the visible line for the given point.
Declaration
protected virtual VisibleLineInfo HitTest(Point point, out Cursor cursor)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Point | point | The point that needs to be checked. |
System.Windows.Forms.Cursor | cursor | The cursor for the resizing option. |
Returns
Type | Description |
---|---|
VisibleLineInfo | Returns the visible column info at the given point. |
ProcessMouseUp(MouseEventArgs)
Occurs when the mouse up is performed after resizing the column header.
Declaration
protected virtual void ProcessMouseUp(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | An System.Windows.Forms.MouseEventArgs that contains event data. |
ProcessResizing(MouseEventArgs, GridColumn)
Performs the resizing for the hidden columns.
Declaration
protected virtual void ProcessResizing(MouseEventArgs e, GridColumn column)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains event data. |
GridColumn | column | The column that needs to be resized. |
SetColumnWidth(Int32, Double)
Sets the column width for the given column index.
Declaration
protected virtual void SetColumnWidth(int index, double width)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the column that needs to be set with the given value. |
System.Double | width | The width of the column to be set. |