Dela via


RibbonGalleryItem.IsSelected Property

Gets or sets a value that indicates whether this item is selected.

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

Syntax

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

Property Value

Type: System.Boolean
true if this item is selected; 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

IsSelectedProperty

Metadata properties set to true

BindsTwoWayByDefault

.NET Framework Security

See Also

Reference

RibbonGalleryItem Class

Microsoft.Windows.Controls.Ribbon Namespace