Skip to main content
Version: 4.1

Padding

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents padding or margin information associated with a user interface (UI) element.

public struct Padding : ValueType, IWisejSerializable

Constructors

Instance member Padding(left, top, right, bottom)

Initializes a new instance of the Padding class using a separate padding size for each edge.

NameTypeDescription
leftInt32The padding size, in pixels, for the left edge.
topInt32The padding size, in pixels, for the top edge.
rightInt32The padding size, in pixels, for the right edge.
bottomInt32The padding size, in pixels, for the bottom edge.

Instance member Padding(all)

Initializes a new instance of the Padding class using the supplied padding size for all edges.

NameTypeDescription
allInt32The number of pixels to be used for padding for all edges.

Properties

Instance member All

Int32: Returns or sets the padding value for all the edges.

Instance member Bottom

Int32: Returns or sets the padding value for the bottom edge.

Instance member Horizontal

Int32: Returns the combined padding for the right and left edges.

Instance member IsEmpty

Boolean: Returns if the padding is empty.

Instance member Left

Int32: Returns or sets the padding value for the left edge.

Int32: Returns or sets the padding value for the right edge.

Instance member Size

Size: Returns the padding information in the form of a Size.

Instance member Top

Int32: Returns or sets the padding value for the top edge.

Instance member Vertical

Int32: Returns the combined padding for the top and bottom edges.

Methods

Static member Add(p1, p2)

Computes the sum of the two specified Padding values.

ParameterTypeDescription
p1PaddingA Padding.
p2PaddingA Padding.

Returns: Padding. A Padding that contains the sum of the two specified Padding values.

Static member Subtract(p1, p2)

Subtracts one specified Padding value from another.

ParameterTypeDescription
p1PaddingA Padding.
p2PaddingA Padding.

Returns: Padding. A Padding that contains the result of the subtraction of one specified Padding value from another.

Used By

NameDescription
Control.PaddingReturns or sets padding within the control.
Control.MarginReturns or sets the space between controls.
DataGridViewCellStyle.PaddingReturns or sets the space between the edge of a DataGridViewCell and its content.
LabelWrapper.PaddingReturns or sets the additional padding around the label. This property can be defined in the theme.
UserPopup.OffsetReturns or sets the offset in pixels from the calculated position of the popup.
ListView.ItemPaddingReturns or sets the padding inside ListViewItem objects in any View mode.
StatusBarPanel.PaddingReturns or sets padding within the statusbar panel.
ToolBarButton.PaddingReturns or sets padding within the toolbar button.
ToolBarButton.MarginReturns or sets the space between toolbar buttons.
Padding.AddComputes the sum of the two specified Padding values.
ControlExtensions.PaddingSets the padding for the specified control.
ControlExtensions.MarginSets the margin for the specified control using a Padding object.
ToolBarButtonExtensions.PaddingSets the padding of the ToolBarButton.
ToolBarButtonExtensions.MarginSets the margin of the ToolBarButton.
ClientTheme.GetInsetsReturns the size of the inset border and padding.