WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class VisualContainer - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    ScrollableFrame
    VisualContainer
    VisualContainerExt
    Inherited Members
    ScrollableFrame.ArrangeOverride(Size)
    ScrollableFrame.WireEvents()
    ScrollableFrame.UnWireEvents()
    ScrollableFrame.CreateScrollAxis(Orientation, Boolean, IScrollBar, ILineSizeHost)
    ScrollableFrame.OnContainerKeyDown(Object, KeyEventArgs)
    ScrollableFrame.LineDown()
    ScrollableFrame.LineLeft()
    ScrollableFrame.LineRight()
    ScrollableFrame.LineUp()
    ScrollableFrame.MouseWheelDown()
    ScrollableFrame.MouseWheelLeft()
    ScrollableFrame.MouseWheelRight()
    ScrollableFrame.MouseWheelUp()
    ScrollableFrame.PageDown()
    ScrollableFrame.PageLeft()
    ScrollableFrame.PageRight()
    ScrollableFrame.PageUp()
    ScrollableFrame.SetHorizontalOffset(Double)
    ScrollableFrame.SetVerticalOffset(Double)
    ScrollableFrame.HScrollBar
    ScrollableFrame.VScrollBar
    ScrollableFrame.ScrollRows
    ScrollableFrame.ScrollColumns
    ScrollableFrame.VerticalPixelScroll
    ScrollableFrame.HorizontalPixelScroll
    ScrollableFrame.CanHorizontallyScroll
    ScrollableFrame.CanVerticallyScroll
    ScrollableFrame.ExtentHeight
    ScrollableFrame.ExtentWidth
    ScrollableFrame.HorizontalOffset
    ScrollableFrame.VerticalOffset
    ScrollableFrame.ViewportHeight
    ScrollableFrame.ViewportWidth
    ScrollableFrame.VerticalPadding
    ScrollableFrame.HorizontalPadding
    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 Description
    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
    ScrollableFrame.Dispose(Boolean)

    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
    ScrollableFrame.InvalidateMeasureInfo()

    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 Description
    System.Drawing.Size
    Overrides
    ScrollableFrame.MeasureOverride(Size)

    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
    ScrollableFrame.OnScrollColumns_Changed(Object, ScrollChangedEventArgs)

    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
    ScrollableFrame.UpdateAxis(Size)

    WndProc(ref Message)

    Declaration
    protected override void WndProc(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved