DesignerAutoFormatCollection.Add メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DesignerAutoFormatCollection.Add メソッドの意味・解説 

DesignerAutoFormatCollection.Add メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

指定した DesignerAutoFormat オブジェクトコレクション末尾追加します

名前空間: System.Web.UI.Design
アセンブリ: System.Design (system.design.dll 内)
構文構文

Public Function Add ( _
    format As DesignerAutoFormat _
) As Integer
Dim instance As DesignerAutoFormatCollection
Dim format As DesignerAutoFormat
Dim returnValue As Integer

returnValue = instance.Add(format)
public int Add (
    DesignerAutoFormat format
)
public:
int Add (
    DesignerAutoFormat^ format
)
public int Add (
    DesignerAutoFormat format
)
public function Add (
    format : DesignerAutoFormat
) : int

パラメータ

format

DesignerAutoFormat のインスタンス

戻り値
コレクション追加された書式インデックス位置

解説解説
使用例使用例

DesignerAutoFormat オブジェクト作成してカスタム デザイナAutoFormats プロパティ追加するコード例次に示します

' 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 のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DesignerAutoFormatCollection クラス
DesignerAutoFormatCollection メンバ
System.Web.UI.Design 名前空間
DesignerAutoFormat クラス
ControlDesigner クラス
ControlDesigner.AutoFormats プロパティ
その他の技術情報
Web フォームデザインサポート


このページでは「.NET Framework クラス ライブラリ リファレンス」からDesignerAutoFormatCollection.Add メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDesignerAutoFormatCollection.Add メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDesignerAutoFormatCollection.Add メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DesignerAutoFormatCollection.Add メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DesignerAutoFormatCollection.Add メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS