DesignerOptionService.Options プロパティ
アセンブリ: System (system.dll 内)

Dim instance As DesignerOptionService Dim value As DesignerOptionCollection value = instance.Options
使用できるデザイナ オプションが設定される 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;

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDesignerOptionService.Options プロパティを検索する場合は、下記のリンクをクリックしてください。

- DesignerOptionService.Options プロパティのページへのリンク