BehaviorService.Adorners プロパティ
アセンブリ: System.Design (system.design.dll 内)

Dim instance As BehaviorService Dim value As BehaviorServiceAdornerCollection value = instance.Adorners
public: property BehaviorServiceAdornerCollection^ Adorners { BehaviorServiceAdornerCollection^ get (); }
BehaviorServiceAdornerCollection。


BehaviorServiceAdornerCollection に対して Adorner オブジェクトを追加および削除する方法を次のコード例に示します。このコード例は、BehaviorService クラスのトピックで取り上げているコード例の一部分です。
Class MyDesigner Inherits ControlDesigner Private myAdorner As Adorner Protected Overrides Sub Dispose(ByVal disposing As Boolean) If disposing AndAlso Not (myAdorner Is Nothing) Then Dim b As System.Windows.Forms.Design.Behavior.BehaviorService _ = BehaviorService If Not (b Is Nothing) Then b.Adorners.Remove(myAdorner) End If End If End Sub Public Overrides Sub Initialize(ByVal component As IComponent) MyBase.Initialize(component) ' Add the custom set of glyphs using the BehaviorService. ' Glyphs live on adornders. myAdorner = New Adorner() BehaviorService.Adorners.Add(myAdorner) myAdorner.Glyphs.Add(New MyGlyph(BehaviorService, Control)) End Sub End Class
class MyDesigner : ControlDesigner { private Adorner myAdorner; protected override void Dispose(bool disposing) { if (disposing && myAdorner != null) { BehaviorService b = BehaviorService; if (b != null) { b.Adorners.Remove(myAdorner); } } } public override void Initialize(IComponent component) { base.Initialize(component); // Add the custom set of glyphs using the BehaviorService. // Glyphs live on adornders. myAdorner = new Adorner(); BehaviorService.Adorners.Add(myAdorner); myAdorner.Glyphs.Add(new MyGlyph(BehaviorService, Control)); } }


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からBehaviorService.Adorners プロパティを検索する場合は、下記のリンクをクリックしてください。

- BehaviorService.Adorners プロパティのページへのリンク