Επεξεργασία

Κοινή χρήση μέσω


ComponentGlyph Class

Definition

Associates a Glyph with its component.

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
Inheritance
ComponentGlyph
Derived

Remarks

The ComponentGlyph class contains the RelatedComponent property, which points back to the glyph's related component. This property can be used to trace Glyph objects back to their component, such as during drag operations.

Constructors

ComponentGlyph(IComponent, Behavior)

Initializes a new instance of the ComponentGlyph class.

ComponentGlyph(IComponent)

Initializes a new instance of the ComponentGlyph class.

Properties

Behavior

Gets the Behavior associated with the Glyph.

(Inherited from Glyph)
Bounds

Gets the bounds of the Glyph.

(Inherited from Glyph)
RelatedComponent

Gets the component that is associated with the Glyph .

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetHitTest(Point)

Indicates whether a mouse click at the specified point should be handled by the ComponentGlyph.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Paint(PaintEventArgs)

Provides paint logic.

SetBehavior(Behavior)

Changes the Behavior associated with the Glyph.

(Inherited from Glyph)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also