次の方法で共有


TableItemStyle.MergeWith メソッド

指定した Style のスタイル プロパティをこのメソッドの呼び出し元である TableItemStyle クラスのインスタンスに結合します。

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

構文

'宣言
Public Overrides Sub MergeWith ( _
    s As Style _
)
'使用
Dim instance As TableItemStyle
Dim s As Style

instance.MergeWith(s)
public override void MergeWith (
    Style s
)
public:
virtual void MergeWith (
    Style^ s
) override
public void MergeWith (
    Style s
)
public override function MergeWith (
    s : Style
)
適用できません。

パラメータ

  • s
    結合するスタイルを表す Style

解説

MergeWith メソッドを使用して、指定した Style のスタイル プロパティをこのメソッドの呼び出し元である TableItemStyle クラスのインスタンスに結合します。

このメソッドは、Style オブジェクトのプロパティと、TableItemStyle クラスの現在のインスタンスを結合します。これは、TableItemStyle クラスの現在のインスタンスに設定されていない各プロパティを s パラメータの対応するプロパティの値に設定することによって実行されます。設定されていないプロパティだけが置き換えられます。s パラメータのプロパティが設定されていない場合、TableItemStyle クラスの現在のインスタンスの対応するプロパティは置き換えられません。

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

TableItemStyle クラス
TableItemStyle メンバ
System.Web.UI.WebControls 名前空間
Style
CopyFrom