Dela via


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
Public method RibbonControlLength(Double) Initializes a new instance of the RibbonControlLength structure with an absolute value in pixels.
Public method RibbonControlLength(Double, RibbonControlLengthUnitType) Initializes a new instance of the RibbonControlLength structure with the specified value and length unit.

Top

Properties

  Name Description
Public propertyStatic member Auto Gets a RibbonControlLength structure that represents the standard automatic sizing mode.
Public property IsAbsolute Gets a value that indicates whether this instance sizes elements based on a fixed pixel or logical value.
Public property IsAuto Gets a value that indicates whether this instance automatically sizes elements.
Public property IsStar Gets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space.
Public property RibbonControlLengthUnitType Gets the type that is used to determine how the size of the element is calculated.
Public property Value Gets the absolute value of the RibbonControlLength in pixels or logical units.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current RibbonControlLength. (Overrides ValueType.Equals(Object).)
Public method Equals(RibbonControlLength) Determines whether the specified RibbonControlLength is equal to the current RibbonControlLength.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets a hash code for the RibbonControlLength. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Overrides ValueType.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Compares two RibbonControlLength structures for equality.
Public operatorStatic member 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.

See Also

Reference

Microsoft.Windows.Controls.Ribbon Namespace