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

/** @property */ public boolean get_Enabled () /** @property */ public void set_Enabled (boolean value)
Adorner が有効な場合は true。それ以外の場合は false。


Adorner を有効にしたり無効にしたりする方法を次のコード例に示します。完全なコードの一覧については、「方法 : デザイン モードでコントロールの外観と動作を拡張する」を参照してください。
' The AnchorGlyph objects should mimic the resize glyphs; ' they should only be visible when the control is the ' primary selection. The adorner is enabled when the ' control is the primary selection and disabled when ' it is not. Private Sub selectionService_SelectionChanged( _ ByVal sender As Object, _ ByVal e As EventArgs) If Object.ReferenceEquals( _ Me.selectionService.PrimarySelection, _ Me.relatedControl) Then Me.ComputeBounds() Me.anchorAdorner.Enabled = True Else Me.anchorAdorner.Enabled = False End If End Sub
// The AnchorGlyph objects should mimic the resize glyphs; // they should only be visible when the control is the // primary selection. The adorner is enabled when the // control is the primary selection and disabled when // it is not. void selectionService_SelectionChanged(object sender, EventArgs e) { if (object.ReferenceEquals( this.selectionService.PrimarySelection, this.relatedControl)) { this.ComputeBounds(); this.anchorAdorner.Enabled = true; } else { this.anchorAdorner.Enabled = false; } }


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Adorner.Enabled プロパティのページへのリンク