RibbonControlLength Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
The type that is used to determine how the size of the element is calculated.