IUIRibbon interface (Windows)

Switch View :
ScriptFree
IUIRibbon interface

Applies to: desktop apps only

The IUIRibbon interface is implemented by the Windows Ribbon framework and provides the ability to specify settings and properties for a ribbon.

Members

The IUIRibbon interface inherits from the IUnknown interface. IUIRibbon also has these types of members:

Methods

The IUIRibbon interface has these methods.

MethodDescription
GetHeight

Retrieves the height of the ribbon.

LoadSettingsFromStream

Reads ribbon settings from a binary stream.

SaveSettingsToStream

Writes ribbon settings to a binary stream.

 

Remarks

A Ribbon is composed of several components that can include an Application Menu, the Quick Access Toolbar (QAT), Tabs (core and contextual), Groups (containers for controls), and a rich context menu system (Context Popup).

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Uiribbon.h

IDL

Uiribbon.idl

DLL

Uiribbon.dll

See also

Windows Ribbon Framework Samples

 

 

Send comments about this topic to Microsoft

Build date: 2/15/2012

Community Content

Arik Poznanski
C# Syntax
// Ribbon view interface
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("803982ab-370a-4f7e-a9e7-8784036a6e26")]
public interface IUIRibbon
{
// Returns the Ribbon height
[PreserveSig]
HRESULT GetHeight(out UInt32 cy);

// Load Ribbon parameters (e.g. QuickAccessToolbar) from a stream
[PreserveSig]
HRESULT LoadSettingsFromStream([MarshalAs(UnmanagedType.Interface)] IStream pStream);

// Save Ribbon parameters (e.g. QuickAccessToolbar) to a stream
[PreserveSig]
HRESULT SaveSettingsToStream([MarshalAs(UnmanagedType.Interface)] IStream pStream);
}