StatusBarPanel.Icon StatusBarPanel.Icon StatusBarPanel.Icon StatusBarPanel.Icon Property

定义

获取或设置要显示在状态栏面板中的图标。Gets or sets the icon to display within the status bar panel.

public:
 property System::Drawing::Icon ^ Icon { System::Drawing::Icon ^ get(); void set(System::Drawing::Icon ^ value); };
public System.Drawing.Icon Icon { get; set; }
member this.Icon : System.Drawing.Icon with get, set
Public Property Icon As Icon

属性值

Icon 表示要显示在面板中的图标。An Icon that represents the icon to display in the panel.

注解

此属性可用于显示表示你的应用程序或你的应用程序内的进程的状态的图标。You can use this property to display an icon that represents the state of your application or a process within your application. 例如,可以显示中的图标StatusBarPanel以指示是否正在进行中还是已完成保存操作的文件。For example, you can display an icon in a StatusBarPanel to indicate whether a file save operation is in progress or complete.

备注

没有方法来独立地定位内的图标StatusBarPanelThere is no way to independently position an icon within the StatusBarPanel. 例如,不能定位到左侧和右侧的图标StatusBarPanel采用一致的右侧使用文本同时Alignment属性。For example, you cannot position an icon to the left side of the StatusBarPanel while aligning the text on the right side using the Alignment property. 图标始终定位到左侧和右侧的面板的文本而不考虑文本对齐方式。The icon is always positioned to the left side of the panel's text regardless of how the text is aligned.

适用于

另请参阅