TouchToolKit for WinForms | ComponentOne
C1.Win.TouchToolKit Namespace / ControlBar Class / Margin Property
Example

In This Topic
    Margin Property (ControlBar)
    In This Topic
    Gets or sets a value indicating the outer margin of a ControlBar window relative the owner form client coordinates.
    Syntax
    'Declaration
     
    
    Public Property Margin As Padding
    public Padding Margin {get; set;}

    Property Value

    A System.Windows.Forms.Padding value that represents the outer margin of the ControlBar window in pixels. The default is 0.
    Remarks

    This property only take effect when PositionMode property value is MultiTouch.PositionMode.Dock.

    Following table shows which property will take effect when DockPosition different.

    DockPosition Margin
    TopLeft Top, Left
    TopCenter Top
    TopRight Top, Right
    MiddleLeft Left
    MiddleCenter not avaiable
    MiddleRight Right
    BottomLeft Bottom, Left
    BottomCenter Bottom
    BottomRight Bottom, Right

    Example

    The following code example shows how to use this property.

    This code example is part of a larger example provided for the ControlBar class.

    See Also