Share via


RibbonControlSizeDefinition.Width Property

Gets or sets the width of a container control in a Ribbon.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property Width As RibbonControlLength
public RibbonControlLength Width { get; set; }
public:
property RibbonControlLength Width {
    RibbonControlLength get ();
    void set (RibbonControlLength value);
}
member Width : RibbonControlLength with get, set
function get Width () : RibbonControlLength
function set Width (value : RibbonControlLength)

Property Value

Type: Microsoft.Windows.Controls.Ribbon.RibbonControlLength
The width of the control. The registered default is Auto. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

WidthProperty

Metadata properties set to true

None

Remarks

This property only has an effect if the control is a container for other objects.

.NET Framework Security

See Also

Reference

RibbonControlSizeDefinition Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Ribbon Layout and Resizing