Bewerken

Delen via


Glyph(Behavior) Constructor

Definition

Initializes a new instance of the Glyph class.

protected:
 Glyph(System::Windows::Forms::Design::Behavior::Behavior ^ behavior);
protected Glyph (System.Windows.Forms.Design.Behavior.Behavior behavior);
protected Glyph (System.Windows.Forms.Design.Behavior.Behavior? behavior);
new System.Windows.Forms.Design.Behavior.Glyph : System.Windows.Forms.Design.Behavior.Behavior -> System.Windows.Forms.Design.Behavior.Glyph
Protected Sub New (behavior As Behavior)

Parameters

behavior
Behavior

The Behavior associated with the Glyph. Can be null.

Examples

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));
myAdorner = new Adorner();
BehaviorService.Adorners.Add(myAdorner);
myAdorner.Glyphs.Add(new MyGlyph(BehaviorService, Control));
myAdorner = New Adorner()
BehaviorService.Adorners.Add(myAdorner)
myAdorner.Glyphs.Add(New MyGlyph(BehaviorService, Control))

Applies to

See also