Search Results for

    Show / Hide Table of Contents

    Class PageControl

    Represents a control that may contain several pages. It is similar to the TabControl but contains no tabs. This control is widely used in wizards.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.ComponentModel.Component
    System.Windows.Forms.Control
    System.Windows.Forms.ScrollableControl
    System.Windows.Forms.ContainerControl
    PageControl
    Namespace: FastReport.Controls
    Assembly: FastReport.dll
    Syntax
    public class PageControl : ContainerControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

    Constructors

    PageControl()

    Initializes a new instance of the PageControl class with default settings.

    Declaration
    public PageControl()

    Properties

    ActivePage

    Gets or sets the active page.

    Declaration
    [Browsable(false)]
    public Panel ActivePage { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.Panel

    ActivePageIndex

    Gets or sets the index of active page.

    Declaration
    [Browsable(false)]
    public int ActivePageIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    HighlightPageIndex

    Gets or sets the highlighted page index.

    Declaration
    [Browsable(false)]
    public int HighlightPageIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    Padding

    This property is not relevant to this class

    Declaration
    [Browsable(false)]
    public Padding Padding { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.Padding

    Pages

    Gets the collection of pages.

    Declaration
    [Browsable(false)]
    public Control.ControlCollection Pages { get; }
    Property Value
    Type Description
    System.Windows.Forms.Control.ControlCollection

    SelectorTabHeight

    Gets or sets the height of selector tab.

    Declaration
    public int SelectorTabHeight { get; set; }
    Property Value
    Type Description
    System.Int32

    SelectorWidth

    Gets or sets a value that determines whether the selector area is visible or not.

    Declaration
    public int SelectorWidth { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    GetTabAt(Point)

    Gets tab at specified mouse point.

    Declaration
    public int GetTabAt(Point pt)
    Parameters
    Type Name Description
    System.Drawing.Point pt

    The mouse point.

    Returns
    Type Description
    System.Int32

    Index of tab under mouse; -1 if mouse is outside tab area.

    OnMouseLeave(EventArgs)

    Declaration
    protected override void OnMouseLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    System.Windows.Forms.Control.OnMouseLeave(System.EventArgs)

    OnMouseMove(MouseEventArgs)

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e
    Overrides
    System.Windows.Forms.Control.OnMouseMove(System.Windows.Forms.MouseEventArgs)

    OnMouseUp(MouseEventArgs)

    Declaration
    protected override void OnMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e
    Overrides
    System.Windows.Forms.Control.OnMouseUp(System.Windows.Forms.MouseEventArgs)

    OnPaint(PaintEventArgs)

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e
    Overrides
    System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs)

    OnParentRightToLeftChanged(EventArgs)

    Declaration
    protected override void OnParentRightToLeftChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    System.Windows.Forms.Control.OnParentRightToLeftChanged(System.EventArgs)

    SelectNextPage()

    Selects the next page.

    Declaration
    public void SelectNextPage()

    SelectPrevPage()

    Selects the previous page.

    Declaration
    public void SelectPrevPage()

    Events

    PageSelected

    Occurs when page is selected.

    Declaration
    public event EventHandler PageSelected
    Event Type
    Type Description
    System.EventHandler

    Extension Methods

    UIUtils.DrawImageAndText(Control, DrawItemEventArgs, Image, String)
    UIUtils.DrawVisualStyleBorder(Control, Graphics, Rectangle)
    UIUtils.Dpi(Control)
    UIUtils.DpiMultiplier(Control)
    UIUtils.FontDpiMultiplier(Control)
    UIUtils.LogicalToDevice(Control, Int32)
    UIUtils.LogicalToDevice(Control, Single)
    UIUtils.LogicalToDevice(Control, Rectangle)
    UIUtils.LogicalToDevice(Control, Point)
    UIUtils.LogicalToDevice(Control, Size)
    UIUtils.LogicalToDevice(Control, Font, Boolean)
    UIUtils.GetImage(Control, Int32)
    UIUtils.GetImage(Control, String)
    UIUtils.GetImages(Control)
    Back to top © 1998-2025 Copyright Fast Reports Inc.