Dela via


RibbonGroup.IsCollapsed Property

Gets a value that indicates whether the ribbon group is collapsed.

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

Syntax

'Declaration
Public Property IsCollapsed As Boolean
public bool IsCollapsed { get; internal set; }
public:
property bool IsCollapsed {
    bool get ();
    internal: void set (bool value);
}
member IsCollapsed : bool with get, internal set
function get IsCollapsed () : boolean
internal function set IsCollapsed (value : boolean)

Property Value

Type: System.Boolean
true if the group is collapsed; otherwise, false. The registered default is false. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

IsCollapsedProperty

Metadata properties set to true

None

Remarks

In the collapsed state, a ribbon group looks and behaves like a menu button.

The following illustration shows a ribbon with the Clipboard, Paragraph, and Insert groups in their collapsed state. When a group is collapsed into a menu button, its largest size variation is shown when the drop-down is opened.

Ribbon with collapsed groups

.NET Framework Security

See Also

Reference

RibbonGroup Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Ribbon Layout and Resizing