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; } }


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 プロパティのページへのリンク