Szerkesztés

Megosztás a következőn keresztül:


RibbonControlLength Constructors

Definition

Initializes a new instance of the RibbonControlLength structure.

Overloads

RibbonControlLength(Double)

Initializes a new instance of the RibbonControlLength structure with an absolute value in pixels.

RibbonControlLength(Double, RibbonControlLengthUnitType)

Initializes a new instance of the RibbonControlLength structure with the specified value and length unit.

RibbonControlLength(Double)

Initializes a new instance of the RibbonControlLength structure with an absolute value in pixels.

public:
 RibbonControlLength(double pixels);
public RibbonControlLength (double pixels);
new System.Windows.Controls.Ribbon.RibbonControlLength : double -> System.Windows.Controls.Ribbon.RibbonControlLength
Public Sub New (pixels As Double)

Parameters

pixels
Double

The absolute pixel value to initialize the length to.

Exceptions

pixels is NaN.

Applies to

RibbonControlLength(Double, RibbonControlLengthUnitType)

Initializes a new instance of the RibbonControlLength structure with the specified value and length unit.

public:
 RibbonControlLength(double value, System::Windows::Controls::Ribbon::RibbonControlLengthUnitType type);
public RibbonControlLength (double value, System.Windows.Controls.Ribbon.RibbonControlLengthUnitType type);
new System.Windows.Controls.Ribbon.RibbonControlLength : double * System.Windows.Controls.Ribbon.RibbonControlLengthUnitType -> System.Windows.Controls.Ribbon.RibbonControlLength
Public Sub New (value As Double, type As RibbonControlLengthUnitType)

Parameters

value
Double

The requested size of the element.

type
RibbonControlLengthUnitType

The type that is used to determine how the size of the element is calculated.

Exceptions

value is NaN.

-or-

type is Star and value is NegativeInfinity or PositiveInfinity.

-or-

type is not Auto, Pixel, Star, or Item.

Applies to