语言

ComponentGlyph 类

定义

将 a Glyph 与其组件相关联。

public ref class ComponentGlyph : System::Windows::Forms::Design::Behavior::Glyph
public class ComponentGlyph : System.Windows.Forms.Design.Behavior.Glyph
type ComponentGlyph = class
    inherit Glyph
Public Class ComponentGlyph
Inherits Glyph
继承
ComponentGlyph
派生

注解

该 ComponentGlyph 类包含属性 RelatedComponent ,该属性指向标志符号的相关组件。 此属性可用于将对象跟踪 Glyph 回其组件,例如在拖动操作期间。

构造函数

名称 说明
ComponentGlyph(IComponent, Behavior)

初始化 ComponentGlyph 类的新实例。

ComponentGlyph(IComponent)

初始化 ComponentGlyph 类的新实例。

属性

名称 说明
Behavior

获取与 Behavior . Glyph.

(继承自 Glyph)
Bounds

获取 . 的 Glyph边界。

(继承自 Glyph)
RelatedComponent

获取与 . Glyph . 关联的组件。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetHitTest(Point)

指示是否应由指定点处的鼠标单击进行处理 ComponentGlyph。

GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
Paint(PaintEventArgs)

提供绘制逻辑。

SetBehavior(Behavior)

更改 Behavior 与 . Glyph.

(继承自 Glyph)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅