SplitContainer.SplitterRectangle SplitContainer.SplitterRectangle SplitContainer.SplitterRectangle SplitContainer.SplitterRectangle Property

定义

获取拆分器相对于 SplitContainer 的大小和位置。Gets the size and location of the splitter relative to the SplitContainer.

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

属性值

Rectangle,它指定拆分器相对于 SplitContainer 的大小和位置。A Rectangle that specifies the size and location of the splitter relative to the SplitContainer.

注解

用于SplitterRectangle获取拆分器相对于的SplitContainer宽度和高度。Use SplitterRectangle to get the width and height of the splitter relative to the SplitContainer. OnMouseUp SplitterRectangle OnKeyUp 、、OnMouseMove 、和事件处理程序在移动时,绘制以显示拆分器的当前位置。OnMouseDown OnKeyDownThe OnKeyDown, OnKeyUp, OnMouseDown, OnMouseUp, and OnMouseMove event handlers draw the SplitterRectangle to show the current position of the splitter while it is moving.

SplitterRectangle值的含义因而异OrientationThe meaning of the SplitterRectangle values vary depending on the Orientation. 的输出SplitterRectangle采用格式{X, Y, Width, Height}The output of SplitterRectangle is in the format {X, Y, Width, Height}. 下表显示了垂直和水平拆分SplitterRectangle器的值的含义。The following table shows the meaning of the SplitterRectangle values for vertical and horizontal splitters.

维度Dimension 垂直拆分器Vertical Splitter 水平拆分器Horizontal Splitter
XX 拆分器与的SplitContainer左边缘之间的距离(以像素为单位)。The distance in pixels of the splitter from the left edge of the SplitContainer. 对于水平拆分器,此值始终为0,指示拆分器与的SplitContainer左边缘齐平。This value is always 0 for a horizontal splitter, indicating that the splitter is flush with the left edge of the SplitContainer.
YY 对于垂直拆分器,此值始终为0,指示拆分器与的SplitContainer上边缘对齐。This value is always 0 for a vertical splitter, indicating that the splitter is flush with the top edge of the SplitContainer. 拆分器与的SplitContainer上边缘之间的距离(以像素为单位)。The distance in pixels of the splitter from the top edge of the SplitContainer.
宽度Width 拆分器的宽度。The width of the splitter. 拆分器的高度,它等效于SplitContainer控件的高度。The height of the splitter, which is equivalent to the height of the SplitContainer control.
高度Height 拆分器的高度,它等效于SplitContainer控件的高度。The height of the splitter, which is equivalent to the height of the SplitContainer control. 拆分器的宽度。The width of the splitter.

适用于

另请参阅