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

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

CatalogPartChrome.CreateCatalogPartChromeStyle メソッド

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

CatalogPartChrome オブジェクトによって表示される各 CatalogPart コントロールスタイル属性提供するスタイル オブジェクト作成します

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

Protected Overridable Function
 CreateCatalogPartChromeStyle ( _
    catalogPart As CatalogPart, _
    chromeType As PartChromeType _
) As Style
Dim catalogPart As CatalogPart
Dim chromeType As PartChromeType
Dim returnValue As Style

returnValue = Me.CreateCatalogPartChromeStyle(catalogPart, chromeType)
protected virtual Style CreateCatalogPartChromeStyle (
    CatalogPart catalogPart,
    PartChromeType chromeType
)
protected:
virtual Style^ CreateCatalogPartChromeStyle (
    CatalogPart^ catalogPart, 
    PartChromeType chromeType
)
protected Style CreateCatalogPartChromeStyle (
    CatalogPart catalogPart, 
    PartChromeType chromeType
)
protected function CreateCatalogPartChromeStyle
 (
    catalogPart : CatalogPart, 
    chromeType : PartChromeType
) : Style

パラメータ

catalogPart

現在表示中のコントロール

chromeType

特定のコントロールクロム種類。PartChromeType 列挙値の 1 つ

戻り値
catalogPartスタイル属性を含む Style

例外例外
例外種類条件

ArgumentNullException

catalogPart参照するコントロールnull 参照 (Visual Basic では Nothing) です。

ArgumentOutOfRangeException

chromeTypePartChromeType ではありません。

解説解説

CreateCatalogPartChromeStyle メソッドは、CatalogPartChrome オブジェクトによって CatalogPart コントロール表示するために使用される Style オブジェクト作成します

実装時の注意 CatalogPartChrome クラスから継承した場合は、CreateCatalogPartChromeStyle メソッドオーバーライドすることもできますまた、基本メソッドスタイル情報と、追加するカスタム スタイル属性マージすることもできます。この例については「例」を参照してください

使用例使用例

CreateCatalogPartChromeStyle メソッドオーバーライドして、カタログ パーツ コントロール背景色変更する方法次のコード例示します。これらのコントロールホストする Web ページなど、この例の実行必要なコード全体については、CatalogPartChrome クラス概要の「使用例」を参照してください

Protected Overrides Function
 CreateCatalogPartChromeStyle(ByVal catalogPart As
 System.Web.UI.WebControls.WebParts.CatalogPart, ByVal chromeType As System.Web.UI.WebControls.WebParts.PartChromeType) As
 System.Web.UI.WebControls.Style
    Dim editorStyle As Style
    editorStyle = MyBase.CreateCatalogPartChromeStyle(catalogPart,
 chromeType)
    editorStyle.BackColor = Drawing.Color.Bisque
    Return editorStyle
End Function
protected override Style  CreateCatalogPartChromeStyle(CatalogPart
 catalogPart, PartChromeType chromeType)
{
    Style catalogStyle = base.CreateCatalogPartChromeStyle(catalogPart,
 chromeType);
    catalogStyle.BackColor = Color.Bisque;
    return catalogStyle;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CatalogPartChrome クラス
CatalogPartChrome メンバ
System.Web.UI.WebControls.WebParts 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS