SnapLine.SnapLineType 属性

定义

获取对齐线的类型,它指示一般位置和方向。Gets the type of a snapline, which indicates the general location and orientation.

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,它表示对齐线相对于控件边缘的方向和一般位置。A SnapLineType that represents the orientation and general location, relative to control edges, of a snapline.

注解

可视化设计器使用SnapLineType属性来指示对齐操作。Visual designers use the SnapLineType property to direct snap alignment operations. 通常, 仅面向的对齐线才能彼此对齐。Typically only snaplines that are similarly oriented can snap to each other. 例如, 类型Horizontal的两个对齐线可以对齐, HorizontalVertical不能对齐。For example, two snaplines of type Horizontal can snap together, but a Horizontal and a Vertical snapline cannot.

此属性在构造过程中初始化, 以后无法更改。This property is initialized during construction and cannot be changed thereafter.

适用于

另请参阅