RibbonLoadImageEventArgs.ImageName Property
Gets the name of the image that is being loaded in the Ribbon.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
ReadOnly Property ImageName As String
string ImageName { get; }
Property Value
Type: System.String
The name of the image that is being loaded in the Ribbon.
Remarks
Use this property in the event handler for the LoadImage event to load an image for a control. If the ImageName property of the RibbonLoadImageEventArgs matches the ImageName property of the control, set the Image property to the image that you want to load.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.