Glyph Constructor (Behavior^)

 

Initializes a new instance of the Glyph class.

Namespace:   System.Windows.Forms.Design.Behavior
Assembly:  System.Design (in System.Design.dll)

protected:
Glyph(
	Behavior^ behavior
)

Parameters

behavior
Type: System.Windows.Forms.Design.Behavior::Behavior^

The Behavior associated with the Glyph. Can be null.

The following example demonstrates how to initialize a new instance of the Glyph class. This code example is part of a larger example provided for the BehaviorService class.

demoAdorner = gcnew Adorner();
BehaviorService->Adorners->Add(demoAdorner);
demoAdorner->Glyphs->Add 
    (gcnew DemoGlyph(BehaviorService, Control));

.NET Framework
Available since 2.0
Return to top
Show: