Udostępnij za pośrednictwem


OfficeRibbon.Context Property (2007 System)

Gets the Inspector window, or the Explorer window in Outlook, that is associated with this Ribbon.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Public Property Context As Object
'Usage
Dim instance As OfficeRibbon 
Dim value As Object 

value = instance.Context

instance.Context = value
public Object Context { get; internal set; }
public:
property Object^ Context {
    Object^ get ();
    void set (Object^ value);
}
public function get Context () : Object 
public function set Context (value : Object)

Property Value

Type: System.Object
An Object that represents the Inspector window or Explorer window that is associated with this OfficeRibbon object.

Remarks

In Outlook, this property refers to the Inspector window or Explorer window in which this OfficeRibbon is displayed.

In all other Office projects, this property returns null.

.NET Framework Security

See Also

Reference

OfficeRibbon Class

OfficeRibbon Members

Microsoft.Office.Tools.Ribbon Namespace