HyperLinkDataBindingHandler クラス
アセンブリ: System.Design (system.design.dll 内)


HyperLinkDataBindingHandler クラスから派生する CustomHyperLinkDataBindingHandler という名前のクラスを作成するコードの例を次に示します。このコードは、DataBindControl メソッドを使用して CustomHyperLink クラスのデザイン時データ連結を解決します。
' Derive a class from the HyperLinkDataBindingHandler. It will ' resolve data binding for the CustomHyperlink at design time. Public Class CustomHyperLinkDataBindingHandler Inherits HyperLinkDataBindingHandler ' Override the DataBindControl to set property values in ' the DataBindingCollection at design time. Public Overrides Sub DataBindControl( _ ByVal designerHost As IDesignerHost, ByVal control As Control) Dim bindings As DataBindingCollection = _ CType(control, IDataBindingsAccessor).DataBindings Dim imageBinding As DataBinding = bindings("ImageUrl") If Not (imageBinding Is Nothing) Then Dim hLink As CustomHyperLink = CType(control, CustomHyperLink) hLink.ImageUrl = "Image URL." End If MyBase.DataBindControl(designerHost, control) End Sub ' DataBindControl End Class ' CustomHyperLinkDataBindingHandler
// Derive a class from the HyperLinkDataBindingHandler. It will // resolve data binding for the CustomHyperlink at design time. public class CustomHyperLinkDataBindingHandler : HyperLinkDataBindingHandler { // Override the DataBindControl to set property values in // the DataBindingCollection at design time. public override void DataBindControl(IDesignerHost designerHost, Control control) { DataBindingCollection bindings = ((IDataBindingsAccessor)control).DataBindings; DataBinding imageBinding = bindings["ImageUrl"]; // If Text is empty, supply a default value. if (!(imageBinding == null)) { CustomHyperLink hype = (CustomHyperLink)control; hype.ImageUrl = "Image URL."; } // Call the base method to bind the control. base.DataBindControl(designerHost, control); } // DataBindControl } // CustomHyperLinkDataBindingHandler

System.Web.UI.Design.DataBindingHandler
System.Web.UI.Design.HyperLinkDataBindingHandler


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


HyperLinkDataBindingHandler コンストラクタ
アセンブリ: System.Design (system.design.dll 内)



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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


HyperLinkDataBindingHandler メソッド

名前 | 説明 | |
---|---|---|
![]() | DataBindControl | オーバーライドされます。 指定したコントロールのデザイン時のデータ バインディングを解決します。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

HyperLinkDataBindingHandler メンバ
ハイパーリンク プロパティのデータ連結ハンドラを提供します。
HyperLinkDataBindingHandler データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | DataBindControl | オーバーライドされます。 指定したコントロールのデザイン時のデータ バインディングを解決します。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からHyperLinkDataBindingHandlerを検索する場合は、下記のリンクをクリックしてください。

- HyperLinkDataBindingHandlerのページへのリンク