SnapLine.SnapLineType 属性

定义

获取对齐线的类型,它指示一般位置和方向。

public:
 property System::Windows::Forms::Design::Behavior::SnapLineType SnapLineType { System::Windows::Forms::Design::Behavior::SnapLineType get(); };
public System.Windows.Forms.Design.Behavior.SnapLineType SnapLineType { get; }
member this.SnapLineType : System.Windows.Forms.Design.Behavior.SnapLineType
Public ReadOnly Property SnapLineType As SnapLineType

属性值

一个 SnapLineType,它表示对齐线相对于控件边缘的方向和一般位置。

注解

视觉对象设计器使用 SnapLineType 属性来指导对齐对齐操作。 通常,只有方向相似的对齐线才能相互对齐。 例如,类型的 Horizontal 两个对齐线可以对齐在一起,但 不能 Horizontal 和对齐 Vertical 线。

此属性在构造过程中初始化,此后无法更改。

适用于

另请参阅