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

适用于

另请参阅