DesignerRegionMouseEventArgs.Region プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DesignerRegionMouseEventArgs.Region プロパティの意味・解説 

DesignerRegionMouseEventArgs.Region プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

存在する場合クリックされたデザイナ領域取得します

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

Dim instance As DesignerRegionMouseEventArgs
Dim value As DesignerRegion

value = instance.Region
public DesignerRegion Region { get; }
public:
property DesignerRegion^ Region {
    DesignerRegion^ get ();
}
/** @property */
public DesignerRegion get_Region ()
public function get Region
 () : DesignerRegion

プロパティ
クリック イベント適用先の DesignerRegion。領域クリックされなかった場合null 参照 (Visual Basic では Nothing)。

解説解説
使用例使用例

DesignerRegionMouseEventArgs を使用してクリックされた領域識別する方法、およびそれに従ってビュー変更する方法次のコード例示します。このコード例は、EditableDesignerRegion クラストピック取り上げているコード例一部分です。

' Handler for the Click event, which provides the region in the arguments.
Protected Overrides Sub
 OnClick(ByVal e As DesignerRegionMouseEventArgs)
    If IsNothing(e.Region) Then
        Return
    End If

    ' If the clicked region is not a header, return
    If e.Region.Name.IndexOf("Header")
 <> 0 Then
        Return
    End If

    ' Switch the current view if required
    If e.Region.Name.Substring(6, 1) <> myControl.CurrentView.ToString()
 Then
        myControl.CurrentView = Integer.Parse(e.Region.Name.Substring(6,
 1))
        MyBase.UpdateDesignTimeHtml()
    End If
End Sub
// Handler for the Click event, which provides the region in the arguments.
protected override void OnClick(DesignerRegionMouseEventArgs
 e)
{
    if (e.Region == null)
        return;

    // If the clicked region is not a header, return
    if (e.Region.Name.IndexOf("Header") != 0)
        return;

    // Switch the current view if required
    if (e.Region.Name.Substring(6, 1) != myControl.CurrentView.ToString())
    {
        myControl.CurrentView = int.Parse(e.Region.Name.Substring(6,
 1));
        base.UpdateDesignTimeHtml();
    }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DesignerRegionMouseEventArgs クラス
DesignerRegionMouseEventArgs メンバ
System.Web.UI.Design 名前空間
DesignerRegion クラス
OnClick


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

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

辞書ショートカット

すべての辞書の索引

「DesignerRegionMouseEventArgs.Region プロパティ」の関連用語

DesignerRegionMouseEventArgs.Region プロパティのお隣キーワード
検索ランキング

   

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



DesignerRegionMouseEventArgs.Region プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS