Share via


CommandBar.Context Property

Returns or sets a string that determines where a command bar will be saved.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property Context As String
    Get
    Set
'Usage
Dim instance As CommandBar
Dim value As String

value = instance.Context

instance.Context = value
string Context { get; set; }

Property Value

Type: System.String

Remarks

The returned string is defined and interpreted by the application.

You can set the Context property only for custom command bars. This property will fail if the application doesn't recognize the context string, or if the application doesn't support changing context strings programmatically.

See Also

Reference

CommandBar Interface

CommandBar Members

Microsoft.Office.Core Namespace