System.Windows.Forms.Design.Behavior 命名空间

System.Windows.Forms.Design.Behavior 命名空间包含用于在设计时创建组件的自定义用户界面行为的类。 The System.Windows.Forms.Design.Behavior namespace contains classes for creating custom user interface behavior for components at design time.

Adorner

管理与用户界面相关的 Glyph 对象的集合。Manages a collection of user-interface related Glyph objects. 此类不能被继承。This class cannot be inherited.

Behavior

表示由 Behavior 管理的 BehaviorService 对象。Represents the Behavior objects that are managed by a BehaviorService.

BehaviorDragDropEventArgs

提供有关 BeginDragEndDrag 事件的数据。Provides data for the BeginDrag and EndDrag events.

BehaviorService

在设计器中管理用户界面。Manages user interface in the designer. 此类不能被继承。This class cannot be inherited.

BehaviorServiceAdornerCollection

在强类型集合中存储 Adorner 对象。Stores Adorner objects in a strongly typed collection.

BehaviorServiceAdornerCollectionEnumerator

支持对 BehaviorServiceAdornerCollection 进行迭代。Supports iteration over a BehaviorServiceAdornerCollection.

ComponentGlyph

Glyph 与其组件关联。Associates a Glyph with its component.

ControlBodyGlyph

Glyph 与其控件关联。Associates a Glyph with its control.

Glyph

表示一个由 Adorner 管理的用户界面 (UI) 实体。Represents a single user interface (UI) entity managed by an Adorner.

GlyphCollection

在强类型集合中存储 Glyph 对象。Stores Glyph objects in a strongly typed collection.

SnapLine

表示在用户界面 (UI) 中动态创建以便在容器中辅助控件的设计时布局的水平和垂直线段。Represents the horizontal and vertical line segments that are dynamically created in the user interface (UI) to assist in the design-time layout of controls in a container. 此类不能被继承。This class cannot be inherited.

枚举

GlyphSelectionType

描述 Glyph 的设计器选择状态。Describes the designer selection state of a Glyph.

SnapLinePriority

指定对齐线的相对重要性。Specifies the relative importance of a snapline.

SnapLineType

指定对齐线的方向和相对位置。Specifies the orientation and relative location of a snapline.

委托

BehaviorDragDropEventHandler

表示将处理 BeginDragEndDragBehaviorService 事件的方法。Represents the methods that will handle the BeginDrag and EndDrag events of a BehaviorService. 此类不能被继承。This class cannot be inherited.

注解

以下列表列出了此命名空间中包含的类:The following list shows the classes included in this namespace:

  • 一个Glyph类,用于处理绘制和命中测试。A Glyph class for handling painting and hit-testing.

  • Adorner类,用于管理一系列Glyph对象。An Adorner class for managing a collection of Glyph objects.

  • 一个BehaviorService类,用于管理设计器中的自定义用户界面。A BehaviorService class for managing the custom user interface in a designer.

  • 一个SnapLine表示水平和垂直线段,帮助用户在设计时对齐组件的类。A SnapLine class that represents horizontal and vertical line segments that assist users in aligning components at design time.