다음을 통해 공유


RibbonSplitButton.Image Property

Gets or sets the image that is displayed on the control.

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

Syntax

'Declaration
Property Image As Image
Image Image { get; set; }

Property Value

Type: System.Drawing.Image
An Image that is displayed on the control.

Remarks

The recommended image format is PNG, because images in the PNG format support transparency through their alpha channel.

The Image property identifies an image that is displayed by the control. This property can be set at design time or at run time. If you update this property at run time, the control's appearance is updated to reflect the change.

If the Image property is set, the OfficeImageId and ImageName properties are ignored. Although the Image property gives you more control than the other two properties do, it can be slower because the image object is sent to the Office application every time the control is updated.

.NET Framework Security

See Also

Reference

RibbonSplitButton Interface

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview