共用方式為


Adorner.Glyphs 屬性

定義

取得 Glyph 集合。

public:
 property System::Windows::Forms::Design::Behavior::GlyphCollection ^ Glyphs { System::Windows::Forms::Design::Behavior::GlyphCollection ^ get(); };
public System.Windows.Forms.Design.Behavior.GlyphCollection Glyphs { get; }
member this.Glyphs : System.Windows.Forms.Design.Behavior.GlyphCollection
Public ReadOnly Property Glyphs As GlyphCollection

屬性值

GlyphCollection

Glyph 物件的集合。

範例

下列範例示範如何存取 Glyph 集合。 此程式碼範例是針對 類別提供的較大範例的 BehaviorService 一部分。

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))

適用於

另請參閱