Class VisualContainer
This is a scrollable visual container which contains the all panels(CellsPanel, BordersPanel, SelectionPanel) of Grid as Children. Handles the arrange and measure logic of all elements.
Inherited Members
Namespace: Syncfusion.Windows.Forms.CellGrid
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class VisualContainer : ScrollableFrame
Constructors
VisualContainer(SfCellGrid)
Creates a new instance.
Declaration
public VisualContainer(SfCellGrid grid)
Parameters
| Type | Name | Description |
|---|---|---|
| SfCellGrid | grid |
Methods
ArrangeChildPanels(Rectangle)
Arrange the child panels.
Declaration
protected virtual void ArrangeChildPanels(Rectangle rect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Rectangle | rect |
CreateFormulaRangeSelectionPanel()
Creates the Formula Range Selection Panel
Declaration
protected virtual FormulaRangeSelectionPanel CreateFormulaRangeSelectionPanel()
Returns
| Type | Description |
|---|---|
| FormulaRangeSelectionPanel | returns new instance for FormulaRange SelectionPanel |
CreateSelectionPanel()
Creates the SelectionPanel.
Declaration
protected virtual SelectionPanel CreateSelectionPanel()
Returns
| Type |
|---|
| SelectionPanel |
Dispose(Boolean)
Dispose the live instances.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | Dispose the instance, if it is True |
Overrides
GetClipRect(ScrollAxisRegion, ScrollAxisRegion)
Gets the clipping bounds for the specified row and column region.
Declaration
public Rectangle GetClipRect(ScrollAxisRegion rowRegion, ScrollAxisRegion columnRegion)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollAxisRegion | rowRegion | The row region. |
| ScrollAxisRegion | columnRegion | The column region. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Rectangle | A GetClipRect(ScrollAxisRegion, ScrollAxisRegion) with clipping bounds. |
InitializeChildPanels()
Initialize and add the child panels.
Declaration
protected virtual void InitializeChildPanels()
InvalidateMeasureInfo()
Invalidates all the child panels.
Declaration
public override void InvalidateMeasureInfo()
Overrides
MeasureChildPanels(Size)
Measure the child panels.
Declaration
protected virtual void MeasureChildPanels(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Size | availableSize |
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Size | availableSize |
Returns
| Type |
|---|
| System.Drawing.Size |
Overrides
OnMouseDoubleClick(MouseEventArgs)
Declaration
protected override void OnMouseDoubleClick(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.MouseEventArgs | e |
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.MouseEventArgs | e |
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e |
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.MouseEventArgs | e |
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.MouseEventArgs | e |
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.PaintEventArgs | e |
OnScrollColumns_Changed(Object, ScrollChangedEventArgs)
Used to refresh the columns when visiblecolumns collection changed
Declaration
protected override void OnScrollColumns_Changed(object sender, ScrollChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | |
| ScrollChangedEventArgs | e |
Overrides
RangeToRect(ScrollAxisRegion, ScrollAxisRegion, GridRangeInfo, Boolean, Boolean)
For internal use.
Declaration
public Rectangle RangeToRect(ScrollAxisRegion rowRegion, ScrollAxisRegion columnRegion, GridRangeInfo range, bool allowEstimatesForOutOfViewRows, bool allowEstimatesForOutOfViewColumns)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollAxisRegion | rowRegion | Scroll axis region for row. |
| ScrollAxisRegion | columnRegion | Scroll axis region for column. |
| GridRangeInfo | range | Cell range. |
| System.Boolean | allowEstimatesForOutOfViewRows | If set to true, allows estimate for out of view rows. |
| System.Boolean | allowEstimatesForOutOfViewColumns | If set to true, allows estimate for out of view columns. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Rectangle | Visible rectangle for the given range. |
RangeToRect(ScrollAxisRegion, ScrollAxisRegion, RowColumnIndex, Boolean, Boolean)
For internal use.
Declaration
public Rectangle RangeToRect(ScrollAxisRegion rowRegion, ScrollAxisRegion columnRegion, RowColumnIndex rowcolumn, bool allowEstimatesForOutOfViewRows, bool allowEstimatesForOutOfViewColumns)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrollAxisRegion | rowRegion | Scroll axis region for row. |
| ScrollAxisRegion | columnRegion | Scroll axis region for column. |
| RowColumnIndex | rowcolumn | Cell range. |
| System.Boolean | allowEstimatesForOutOfViewRows | If set to true, allows estimate for out of view rows. |
| System.Boolean | allowEstimatesForOutOfViewColumns | If set to true, allows estimate for out of view columns. |
Returns
| Type | Description |
|---|---|
| System.Drawing.Rectangle | Visible rectangle for the given range. |
UpdateAxis(Size)
Declaration
public override void UpdateAxis(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Size | availableSize |
Overrides
WndProc(ref Message)
Declaration
protected override void WndProc(ref Message m)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.Message | m |