PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.8 Assembly / C1.C1Preview Namespace / Style Class / Parent Property

In This Topic
    Parent Property (Style)
    In This Topic
    Gets or sets the Style that is the parent of the current style.

    If non-null, that style provides the values for non-ambient properties of the current style that have not been explicitly set.

    If null, such properties have default values.

    This property is null by default.

    Syntax
    'Declaration
     
    Public Property Parent As Style
    public Style Parent {get; set;}
    Remarks
    Initially a Style object does not have any explicitly set properties. This means that the effective values of all ambient properties (such as font) are inherited from the style of the containing object, while the effective values of all non-ambient properties (such as borders) are inherited from the style specified by this property.
    See Also