'Declaration Public Event ColumnWidthChanging As ColumnWidthChangingEventHandler
'Usage Dim instance As FpSpread Dim handler As ColumnWidthChangingEventHandler AddHandler instance.ColumnWidthChanging, handler
public event ColumnWidthChangingEventHandler ColumnWidthChanging
Event Data
The event handler receives an argument of type ColumnWidthChangingEventArgs containing data related to this event. The following ColumnWidthChangingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets whether to cancel the column width change. |
ColumnList | Gets the list of columns whose widths have changed. |
Header | Gets whether the column indexes are row header columns. |
View | Gets the view that contains the columns whose widths have changed. |
Width | Gets the new width of the column. |
Example
This example uses the ColumnWidthChanging event.
private void fpSpread1_ColumnWidthChanging(object sender, FarPoint.Win.Spread.ColumnWidthChangingEventArgs e) { listBox1.Items.Add(e.Width); }
Private Sub fpSpread1_ColumnWidthChanging(sender As Object, e As FarPoint.Win.Spread.ColumnWidthChangingEventArgs) Handles fpSpread1.ColumnWidthChanging ListBox1.Items.Add(e.Width) End Sub
See Also