RibbonControlLength Structure
Represents widths in a RibbonControlSizeDefinition.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
<TypeConverterAttribute(GetType(RibbonControlLengthConverter))> _
Public Structure RibbonControlLength _
Implements IEquatable(Of RibbonControlLength)
[TypeConverterAttribute(typeof(RibbonControlLengthConverter))]
public struct RibbonControlLength : IEquatable<RibbonControlLength>
[TypeConverterAttribute(typeof(RibbonControlLengthConverter))]
public value class RibbonControlLength : IEquatable<RibbonControlLength>
[<Sealed>]
[<TypeConverterAttribute(typeof(RibbonControlLengthConverter))>]
type RibbonControlLength =
struct
interface IEquatable<RibbonControlLength>
end
JScript supports the use of structures, but not the declaration of new ones.
The RibbonControlLength type exposes the following members.
Constructors
Name | Description | |
---|---|---|
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. |
Top
Properties
Name | Description | |
---|---|---|
Auto | Gets a RibbonControlLength structure that represents the standard automatic sizing mode. | |
IsAbsolute | Gets a value that indicates whether this instance sizes elements based on a fixed pixel or logical value. | |
IsAuto | Gets a value that indicates whether this instance automatically sizes elements. | |
IsStar | Gets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space. | |
RibbonControlLengthUnitType | Gets the type that is used to determine how the size of the element is calculated. | |
Value | Gets the absolute value of the RibbonControlLength in pixels or logical units. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current RibbonControlLength. (Overrides ValueType.Equals(Object).) | |
Equals(RibbonControlLength) | Determines whether the specified RibbonControlLength is equal to the current RibbonControlLength. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Gets a hash code for the RibbonControlLength. (Overrides ValueType.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Overrides ValueType.ToString().) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Compares two RibbonControlLength structures for equality. | |
Inequality | Compares two RibbonControlLength structures to determine whether they are not equal. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.