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

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

DesignerOptionService.Options プロパティ

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

このサービスオプション コレクション取得します

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

Public ReadOnly Property
 Options As DesignerOptionCollection
Dim instance As DesignerOptionService
Dim value As DesignerOptionCollection

value = instance.Options
public DesignerOptionCollection Options { get;
 }
public:
property DesignerOptionCollection^ Options {
    DesignerOptionCollection^ get ();
}
/** @property */
public DesignerOptionCollection get_Options ()
public function get Options
 () : DesignerOptionCollection

プロパティ
使用できるデザイナ オプション設定される DesignerOptionService.DesignerOptionCollection。

解説解説
使用例使用例

前付インデクサによってコレクション内を移動してGridSize オプションの値を取得する方法次のコード例示します異な3 つの例すべてが同じ値を返します

' Obtains and shows the size of the standard design-mode grid square.
Dim pd As PropertyDescriptor
pd = designerOptionSvc.Options.Properties("GridSize")

e.Graphics.DrawString("GridSize", _
New Font("Arial", 8), _
New SolidBrush(Color.Black), 4, ypos)

e.Graphics.DrawString(pd.GetValue(Nothing).ToString(), _
New Font("Arial", 8), _
New SolidBrush(Color.Black), 200, ypos)

ypos += 12

' Uncomment the following code to demonstrate that this
' alternate syntax works the same as the previous syntax.
'pd = designerOptionSvc.Options["WindowsFormsDesigner"].Properties["GridSize"];
'e.Graphics.DrawString("GridSize",
'    new Font("Arial", 8),
'    new SolidBrush(Color.Black), 4, ypos);
'e.Graphics.DrawString(pd.GetValue(null).ToString(),
'    new Font("Arial", 8),
'    new SolidBrush(Color.Black), 200, ypos);
'ypos += 12;
'pd = designerOptionSvc.Options["WindowsFormsDesigner"]["General"].Properties["GridSize"];
'e.Graphics.DrawString("GridSize",
'    new Font("Arial", 8),
'    new SolidBrush(Color.Black), 4, ypos);
'e.Graphics.DrawString(pd.GetValue(null).ToString(),
'    new Font("Arial", 8),
'    new SolidBrush(Color.Black), 200, ypos);
'ypos += 12;
// Obtains and shows the size of the standard design-mode grid square.
PropertyDescriptor pd;
pd = designerOptionSvc.Options.Properties["GridSize"];
e.Graphics.DrawString("GridSize", 
    new Font("Arial", 8), 
    new SolidBrush(Color.Black), 4, ypos);
e.Graphics.DrawString(pd.GetValue(null).ToString(), 
    new Font("Arial", 8), 
    new SolidBrush(Color.Black), 200, ypos);
ypos += 12;

// Uncomment the following code to demonstrate that this
// alternate syntax works the same as the previous syntax.

//pd = designerOptionSvc.Options["WindowsFormsDesigner"].Properties["GridSize"];
//e.Graphics.DrawString("GridSize",
//    new Font("Arial", 8),
//    new SolidBrush(Color.Black), 4, ypos);
//e.Graphics.DrawString(pd.GetValue(null).ToString(),
//    new Font("Arial", 8),
//    new SolidBrush(Color.Black), 200, ypos);
//ypos += 12;

//pd = designerOptionSvc.Options["WindowsFormsDesigner"]["General"].Properties["GridSize"];
//e.Graphics.DrawString("GridSize",
//    new Font("Arial", 8),
//    new SolidBrush(Color.Black), 4, ypos);
//e.Graphics.DrawString(pd.GetValue(null).ToString(),
//    new Font("Arial", 8),
//    new SolidBrush(Color.Black), 200, ypos);
//ypos += 12;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DesignerOptionService クラス
DesignerOptionService メンバ
System.ComponentModel.Design 名前空間
IDesignerOptionService
DesignerOptionService.DesignerOptionCollection


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS