Glyph(Behavior) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.