DesignerAutoFormat.Name プロパティ
アセンブリ: System.Design (system.design.dll 内)
構文DesignerAutoFormat 名。
解説Visual Studio 2005 などのビジュアルなデザイナでは、ControlDesigner の AutoFormats コレクション内の各 DesignerAutoFormat オブジェクトの Name プロパティを使用して、使用できる自動スタイル書式の一覧を作成します。
使用例ControlDesigner オブジェクトの AutoFormats プロパティをオーバーライドし、3 つの名前付き書式を作成してコレクションに追加する方法を次のコード例に示します。
' The collection of AutoFormat objects for the IndentLabel object Public Overrides ReadOnly Property AutoFormats() As DesignerAutoFormatCollection Get If _autoFormats Is Nothing Then ' Create the collection _autoFormats = New DesignerAutoFormatCollection() ' Create and add each AutoFormat object _autoFormats.Add(New IndentLabelAutoFormat("MyClassic")) _autoFormats.Add(New IndentLabelAutoFormat("MyBright")) _autoFormats.Add(New IndentLabelAutoFormat("Default")) End If Return _autoFormats End Get End Property
// The collection of AutoFormat objects for the IndentLabel object public override DesignerAutoFormatCollection AutoFormats { get { if (_autoFormats == null) { // Create the collection _autoFormats = new DesignerAutoFormatCollection(); // Create and add each AutoFormat object _autoFormats.Add(new IndentLabelAutoFormat("MyClassic")); _autoFormats.Add(new IndentLabelAutoFormat("MyBright")); _autoFormats.Add(new IndentLabelAutoFormat("Default")); } return _autoFormats; } }
.NET Framework のセキュリティ
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からDesignerAutoFormat.Name プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からDesignerAutoFormat.Name プロパティ
を検索
- DesignerAutoFormat.Name プロパティのページへのリンク