ToolStripItem.Bounds ToolStripItem.Bounds ToolStripItem.Bounds ToolStripItem.Bounds Property

定义

获取项的大小和位置。Gets the size and location of the item.

public:
 virtual property System::Drawing::Rectangle Bounds { System::Drawing::Rectangle get(); };
[System.ComponentModel.Browsable(false)]
public virtual System.Drawing.Rectangle Bounds { get; }
member this.Bounds : System.Drawing.Rectangle
Public Overridable ReadOnly Property Bounds As Rectangle

属性值

一个 Rectangle,它表示 ToolStripItem 的大小和位置。A Rectangle that represents the size and location of the ToolStripItem.

注解

使用属性可确定的大小和位置ToolStripItemBoundsUse the Bounds property to determine the size and location of a ToolStripItem.

与其他控件不同的ToolStripItem是, 没有属性可用于设置的左上角ToolStripItem相对于的左上角ToolStripUnlike other controls, a ToolStripItem has no property that enables you to set the upper-left corner of a ToolStripItem relative to the upper-left corner of the ToolStrip. 如果需要设置的绝对位置ToolStripItem, 则必须ToolStrip重写并定义SetItemLocation方法的自定义实现。If you need to set the absolute position of a ToolStripItem, you must override the ToolStrip and define a custom implementation of the SetItemLocation method.

适用于

另请参阅