Export (0) Print
Expand All

RibbonControlLength Structure

.NET Framework 4.5

Represents widths in a RibbonControlSizeDefinition.

Namespace:  System.Windows.Controls.Ribbon
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)

public struct RibbonControlLength : IEquatable<RibbonControlLength>

The RibbonControlLength type exposes the following members.

Public methodRibbonControlLength(Double)Initializes a new instance of the RibbonControlLength structure with an absolute value in pixels.
Public methodRibbonControlLength(Double, RibbonControlLengthUnitType)Initializes a new instance of the RibbonControlLength structure with the specified value and length unit.

Public propertyStatic memberAutoGets a RibbonControlLength structure that represents the standard automatic sizing mode.
Public propertyIsAbsoluteGets a value that indicates whether this instance sizes elements based on a fixed pixel or logical value.
Public propertyIsAutoGets a value that indicates whether this instance automatically sizes elements.
Public propertyIsStarGets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space.
Public propertyRibbonControlLengthUnitTypeGets the type that is used to determine how the size of the element is calculated.
Public propertyValueGets the absolute value of the RibbonControlLength in pixels or logical units.

Public methodEquals(Object)Determines whether the specified object is equal to the current RibbonControlLength. (Overrides ValueType.Equals(Object).)
Public methodEquals(RibbonControlLength)Determines whether the specified RibbonControlLength is equal to the current RibbonControlLength.
Public methodGetHashCodeGets a hash code for the RibbonControlLength. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Overrides ValueType.ToString().)

Public operatorStatic memberEqualityCompares two RibbonControlLength structures for equality.
Public operatorStatic memberInequalityCompares two RibbonControlLength structures to determine whether they are not equal.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2014 Microsoft