Skip to main content
A newer version of this page is available. .

PaddingInfo Struct

Contains padding or margin information associated with a control or a brick.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v19.2.dll

Declaration

public struct PaddingInfo :
    IEquatable<PaddingInfo>

Remarks

The PaddingInfo structure represents the padding or margin associated with a rectangular UI element such as a control or a brick. The padding is the internal space between the body of the UI element and its edge. In contrast, a margin is the distance separating the adjoining edges of two adjacent UI elements. Because of structural similarities, PaddingInfo is used to represent both padding and margins.

Padding has a different effect on controls that are containers than on controls that are not. For example, in a panel, the Padding property defines the spacing between the border of the panel and its child controls. For a button control, the padding property defines the spacing between the border of the button control and its contained text.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PaddingInfo struct.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also