[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

PropertyValueUIItemとは? わかりやすく解説

PropertyValueUIItem クラス

[プロパティ] ウィンドウ表示されるプロパティについて、イベント ハンドラポップアップ情報文字列プロパティ表示するためのアイコンなどの情報提供します

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

Public Class PropertyValueUIItem
Dim instance As PropertyValueUIItem
public class PropertyValueUIItem
public ref class PropertyValueUIItem
public class PropertyValueUIItem
public class PropertyValueUIItem
使用例使用例

HorizontalMargin または VerticalMargin という名前のコンポーネントプロパティPropertyValueUIItem オブジェクト次のコード例示します。なお、この PropertyValueUIItem は、対象プロパティイメージツールヒント提供するだけでなく、それらのプロパティイメージクリックされたときにメッセージ ボックス表示するイベント ハンドラ提供します。このコード例は IPropertyValueUIService インターフェイストピック取り上げているコード例一部分です。

' PropertyValueUIHandler delegate that provides PropertyValueUIItem
' objects to any properties named HorizontalMargin or VerticalMargin.
Private Sub marginPropertyValueUIHandler(ByVal
 context As System.ComponentModel.ITypeDescriptorContext, ByVal
 propDesc As System.ComponentModel.PropertyDescriptor, ByVal itemList As ArrayList)
    ' A PropertyValueUIHandler added to the IPropertyValueUIService
    ' is queried once for each property of a component and passed
    ' a PropertyDescriptor that represents the characteristics of 
    ' the property when the Properties window is set to a new 
    ' component. A PropertyValueUIHandler can determine whether 
    ' to add a PropertyValueUIItem for the object to its ValueUIItem
 
    ' list depending on the values of the PropertyDescriptor.
    If propDesc.DisplayName.Equals("HorizontalMargin")
 Then
        Dim img As Image = DeserializeFromBase64Text(imageBlob1)
        itemList.Add(New PropertyValueUIItem(img, New
 PropertyValueUIItemInvokeHandler(AddressOf Me.marginInvoke),
 "Test ToolTip"))
    End If
    If propDesc.DisplayName.Equals("VerticalMargin")
 Then
        Dim img As Image = DeserializeFromBase64Text(imageBlob1)
        img.RotateFlip(RotateFlipType.Rotate90FlipNone)
        itemList.Add(New PropertyValueUIItem(img, New
 PropertyValueUIItemInvokeHandler(AddressOf Me.marginInvoke),
 "Test ToolTip"))
    End If
End Sub
// PropertyValueUIHandler delegate that provides PropertyValueUIItem
// objects to any properties named HorizontalMargin or VerticalMargin.
private void marginPropertyValueUIHandler(System.ComponentModel.ITypeDescriptorContext
 context, System.ComponentModel.PropertyDescriptor propDesc, ArrayList itemList)
{
    // A PropertyValueUIHandler added to the IPropertyValueUIService
    // is queried once for each property of a component and passed
    // a PropertyDescriptor that represents the characteristics of 
    // the property when the Properties window is set to a new 
    // component. A PropertyValueUIHandler can determine whether 
    // to add a PropertyValueUIItem for the object to its ValueUIItem
 
    // list depending on the values of the PropertyDescriptor.
    if( propDesc.DisplayName.Equals( "HorizontalMargin"
 ) )
    {
        Image img = DeserializeFromBase64Text(imageBlob1);
        itemList.Add( new PropertyValueUIItem( img, new
 PropertyValueUIItemInvokeHandler(this.marginInvoke), "Test
 ToolTip") );
    }
    if( propDesc.DisplayName.Equals( "VerticalMargin"
 ) )
    {
        Image img = DeserializeFromBase64Text(imageBlob1);
        img.RotateFlip(RotateFlipType.Rotate90FlipNone);
        itemList.Add( new PropertyValueUIItem( img, new
 PropertyValueUIItemInvokeHandler(this.marginInvoke), "Test
 ToolTip") );
    }
}
// PropertyValueUIHandler delegate that provides PropertyValueUIItem
// objects to any properties named horizontalMargin or verticalMargin.
void marginPropertyValueUIHandler( System::ComponentModel::ITypeDescriptorContext^
 /*context*/, System::ComponentModel::PropertyDescriptor^ propDesc, ArrayList^ itemList
 )
{
   // A PropertyValueUIHandler added to the IPropertyValueUIService
   // is queried once for each property of a component and passed
   // a PropertyDescriptor that represents the characteristics of
   // the property when the Properties window is set to a new
   // component. A PropertyValueUIHandler can determine whether
   // to add a PropertyValueUIItem for the object to its ValueUIItem
   // list depending on the values of the PropertyDescriptor.
   if ( propDesc->DisplayName->Equals( "horizontalMargin"
 ) )
   {
      Image^ img = DeserializeFromBase64Text( imageBlob1 );
      itemList->Add( gcnew PropertyValueUIItem( img,gcnew PropertyValueUIItemInvokeHandler(
 this, &PropertyUIComponent::marginInvoke ),"Test ToolTip"
 ) );
   }

   if ( propDesc->DisplayName->Equals( "verticalMargin"
 ) )
   {
      Image^ img = DeserializeFromBase64Text( imageBlob1 );
      img->RotateFlip( RotateFlipType::Rotate90FlipNone );
      itemList->Add( gcnew PropertyValueUIItem( img,gcnew PropertyValueUIItemInvokeHandler(
 this, &PropertyUIComponent::marginInvoke ),"Test ToolTip"
 ) );
   }
}
// PropertyValueUIHandler delegate that provides PropertyValueUIItem
// objects to any properties named HorizontalMargin or VerticalMargin.
private void MarginPropertyValueUIHandler(System.ComponentModel.
        ITypeDescriptorContext context, System.ComponentModel.
        PropertyDescriptor propDesc, ArrayList itemList)
{
    // A PropertyValueUIHandler added to the IPropertyValueUIService
    // is queried once for each property of a component and passed
    // a PropertyDescriptor that represents the characteristics of 
    // the property when the Properties window is set to a new 
    // component. A PropertyValueUIHandler can determine whether 
    // to add a PropertyValueUIItem for the object to its ValueUIItem
 
    // list depending on the values of the PropertyDescriptor.
    if (propDesc.get_DisplayName().Equals("HorizontalMargin"))
 {
        Image img = DeserializeFromBase64Text(imageBlob1);

        itemList.Add(new PropertyValueUIItem(img, 
            new PropertyValueUIItemInvokeHandler(this.MarginInvoke)
,
            "Test ToolTip"));
    }
    if (propDesc.get_DisplayName().Equals("VerticalMargin"))
 {
        Image img = DeserializeFromBase64Text(imageBlob1);

        img.RotateFlip(RotateFlipType.Rotate90FlipNone);
        itemList.Add(new PropertyValueUIItem(img, 
            new PropertyValueUIItemInvokeHandler(this.MarginInvoke)
,
            "Test ToolTip"));
    }
} //MarginPropertyValueUIHandler
.NET Framework のセキュリティ.NET Frameworkセキュリティ
継承階層継承階層
System.Object
  System.Drawing.Design.PropertyValueUIItem
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PropertyValueUIItem メンバ
System.Drawing.Design 名前空間
IPropertyValueUIService インターフェイス

PropertyValueUIItem コンストラクタ

PropertyValueUIItem クラス新しインスタンス初期化します。

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

Public Sub New ( _
    uiItemImage As Image, _
    handler As PropertyValueUIItemInvokeHandler, _
    tooltip As String _
)
Dim uiItemImage As Image
Dim handler As PropertyValueUIItemInvokeHandler
Dim tooltip As String

Dim instance As New PropertyValueUIItem(uiItemImage,
 handler, tooltip)
public PropertyValueUIItem (
    Image uiItemImage,
    PropertyValueUIItemInvokeHandler handler,
    string tooltip
)
public:
PropertyValueUIItem (
    Image^ uiItemImage, 
    PropertyValueUIItemInvokeHandler^ handler, 
    String^ tooltip
)
public PropertyValueUIItem (
    Image uiItemImage, 
    PropertyValueUIItemInvokeHandler handler, 
    String tooltip
)
public function PropertyValueUIItem (
    uiItemImage : Image, 
    handler : PropertyValueUIItemInvokeHandler, 
    tooltip : String
)

パラメータ

uiItemImage

表示するアイコンイメージは 8 × 8 ピクセルであることが必要です。

handler

イメージダブルクリックされたときに呼び出されるハンドラ

tooltip

PropertyValueUIItem に関連付けられているプロパティに対して表示する ToolTip

例外例外
例外種類条件

ArgumentNullException

uiItemImage または handlernull 参照 (Visual Basic では Nothing) です。

使用例使用例

HorizontalMargin または VerticalMargin という名前のコンポーネントプロパティPropertyValueUIItem オブジェクト次のコード例示します。なお、この PropertyValueUIItem は、対象プロパティイメージツールヒント提供するだけでなく、それらのプロパティイメージクリックされたときにメッセージ ボックス表示するイベント ハンドラ提供します。このコード例は IPropertyValueUIService インターフェイストピック取り上げているコード例一部分です。

' PropertyValueUIHandler delegate that provides PropertyValueUIItem
' objects to any properties named HorizontalMargin or VerticalMargin.
Private Sub marginPropertyValueUIHandler(ByVal
 context As System.ComponentModel.ITypeDescriptorContext, ByVal
 propDesc As System.ComponentModel.PropertyDescriptor, ByVal itemList As ArrayList)
    ' A PropertyValueUIHandler added to the IPropertyValueUIService
    ' is queried once for each property of a component and passed
    ' a PropertyDescriptor that represents the characteristics of 
    ' the property when the Properties window is set to a new 
    ' component. A PropertyValueUIHandler can determine whether 
    ' to add a PropertyValueUIItem for the object to its ValueUIItem
 
    ' list depending on the values of the PropertyDescriptor.
    If propDesc.DisplayName.Equals("HorizontalMargin")
 Then
        Dim img As Image = DeserializeFromBase64Text(imageBlob1)
        itemList.Add(New PropertyValueUIItem(img, New
 PropertyValueUIItemInvokeHandler(AddressOf Me.marginInvoke),
 "Test ToolTip"))
    End If
    If propDesc.DisplayName.Equals("VerticalMargin")
 Then
        Dim img As Image = DeserializeFromBase64Text(imageBlob1)
        img.RotateFlip(RotateFlipType.Rotate90FlipNone)
        itemList.Add(New PropertyValueUIItem(img, New
 PropertyValueUIItemInvokeHandler(AddressOf Me.marginInvoke),
 "Test ToolTip"))
    End If
End Sub
// PropertyValueUIHandler delegate that provides PropertyValueUIItem
// objects to any properties named HorizontalMargin or VerticalMargin.
private void marginPropertyValueUIHandler(System.ComponentModel.ITypeDescriptorContext
 context, System.ComponentModel.PropertyDescriptor propDesc, ArrayList itemList)
{
    // A PropertyValueUIHandler added to the IPropertyValueUIService
    // is queried once for each property of a component and passed
    // a PropertyDescriptor that represents the characteristics of 
    // the property when the Properties window is set to a new 
    // component. A PropertyValueUIHandler can determine whether 
    // to add a PropertyValueUIItem for the object to its ValueUIItem
 
    // list depending on the values of the PropertyDescriptor.
    if( propDesc.DisplayName.Equals( "HorizontalMargin"
 ) )
    {
        Image img = DeserializeFromBase64Text(imageBlob1);
        itemList.Add( new PropertyValueUIItem( img, new
 PropertyValueUIItemInvokeHandler(this.marginInvoke), "Test
 ToolTip") );
    }
    if( propDesc.DisplayName.Equals( "VerticalMargin"
 ) )
    {
        Image img = DeserializeFromBase64Text(imageBlob1);
        img.RotateFlip(RotateFlipType.Rotate90FlipNone);
        itemList.Add( new PropertyValueUIItem( img, new
 PropertyValueUIItemInvokeHandler(this.marginInvoke), "Test
 ToolTip") );
    }
}
// PropertyValueUIHandler delegate that provides PropertyValueUIItem
// objects to any properties named horizontalMargin or verticalMargin.
void marginPropertyValueUIHandler( System::ComponentModel::ITypeDescriptorContext^
 /*context*/, System::ComponentModel::PropertyDescriptor^ propDesc, ArrayList^ itemList
 )
{
   // A PropertyValueUIHandler added to the IPropertyValueUIService
   // is queried once for each property of a component and passed
   // a PropertyDescriptor that represents the characteristics of
   // the property when the Properties window is set to a new
   // component. A PropertyValueUIHandler can determine whether
   // to add a PropertyValueUIItem for the object to its ValueUIItem
   // list depending on the values of the PropertyDescriptor.
   if ( propDesc->DisplayName->Equals( "horizontalMargin"
 ) )
   {
      Image^ img = DeserializeFromBase64Text( imageBlob1 );
      itemList->Add( gcnew PropertyValueUIItem( img,gcnew PropertyValueUIItemInvokeHandler(
 this, &PropertyUIComponent::marginInvoke ),"Test ToolTip"
 ) );
   }

   if ( propDesc->DisplayName->Equals( "verticalMargin"
 ) )
   {
      Image^ img = DeserializeFromBase64Text( imageBlob1 );
      img->RotateFlip( RotateFlipType::Rotate90FlipNone );
      itemList->Add( gcnew PropertyValueUIItem( img,gcnew PropertyValueUIItemInvokeHandler(
 this, &PropertyUIComponent::marginInvoke ),"Test ToolTip"
 ) );
   }
}
// PropertyValueUIHandler delegate that provides PropertyValueUIItem
// objects to any properties named HorizontalMargin or VerticalMargin.
private void MarginPropertyValueUIHandler(System.ComponentModel.
        ITypeDescriptorContext context, System.ComponentModel.
        PropertyDescriptor propDesc, ArrayList itemList)
{
    // A PropertyValueUIHandler added to the IPropertyValueUIService
    // is queried once for each property of a component and passed
    // a PropertyDescriptor that represents the characteristics of 
    // the property when the Properties window is set to a new 
    // component. A PropertyValueUIHandler can determine whether 
    // to add a PropertyValueUIItem for the object to its ValueUIItem
 
    // list depending on the values of the PropertyDescriptor.
    if (propDesc.get_DisplayName().Equals("HorizontalMargin"))
 {
        Image img = DeserializeFromBase64Text(imageBlob1);

        itemList.Add(new PropertyValueUIItem(img, 
            new PropertyValueUIItemInvokeHandler(this.MarginInvoke)
,
            "Test ToolTip"));
    }
    if (propDesc.get_DisplayName().Equals("VerticalMargin"))
 {
        Image img = DeserializeFromBase64Text(imageBlob1);

        img.RotateFlip(RotateFlipType.Rotate90FlipNone);
        itemList.Add(new PropertyValueUIItem(img, 
            new PropertyValueUIItemInvokeHandler(this.MarginInvoke)
,
            "Test ToolTip"));
    }
} //MarginPropertyValueUIHandler
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PropertyValueUIItem クラス
PropertyValueUIItem メンバ
System.Drawing.Design 名前空間
IPropertyValueUIService インターフェイス
PropertyValueUIItemInvokeHandler

PropertyValueUIItem プロパティ


PropertyValueUIItem メソッド


PropertyValueUIItem メンバ

[プロパティ] ウィンドウ表示されるプロパティについて、イベント ハンドラポップアップ情報文字列プロパティ表示するためのアイコンなどの情報提供します

PropertyValueUIItem データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド PropertyValueUIItem PropertyValueUIItem クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

PropertyValueUIItem クラス
System.Drawing.Design 名前空間
IPropertyValueUIService インターフェイス



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

「PropertyValueUIItem」の関連用語

PropertyValueUIItemのお隣キーワード
検索ランキング

   

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



PropertyValueUIItemのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS