バージョン

ViewStyle プロパティ (UltraExplorerBar)

コントロールの外観を返すまたは設定します。
シンタックス
'宣言
 
Public Property ViewStyle As UltraExplorerBarViewStyle
public UltraExplorerBarViewStyle ViewStyle {get; set;}
解説

ViewStyle プロパティは、UltraExplorerBar によって使用される表示スキームを決定します。このプロパティが 'Default' に設定される場合、コントロールの Style 設定に関連付けられた ViewStyle 値が使用されます。

使用例
Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinExplorerBar


	Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button16.Click

		' Set the ViewStyle property to 'Default', then test ViewStyleResolved
		' below for each of the control styles.  
		Me.ultraExplorerBar1.ViewStyle = UltraExplorerBarViewStyle.Default


		' When we set the control style to ExplorerBar, ViewStyleResolved will return XPExplorerBar.
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar
		Debug.WriteLine("ViewStyleResolved = " & Me.ultraExplorerBar1.ViewStyleResolved.ToString())


		' When we set the control style to Listbar, ViewStyleResolved will return XP.
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar
		Debug.WriteLine("ViewStyleResolved = " & Me.ultraExplorerBar1.ViewStyleResolved.ToString())


		' When we set the control style to Toolbox, ViewStyleResolved will return XP.
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox
		Debug.WriteLine("ViewStyleResolved = " & Me.ultraExplorerBar1.ViewStyleResolved.ToString())


		' Of course, we can explicitly set the ViewStyle property for any control style to
		' override the default.
		Me.ultraExplorerBar1.ViewStyle = UltraExplorerBarViewStyle.XPExplorerBar


		' When we set the control style to Listbar, ViewStyleResolved now returns XPExplorerBar
		Me.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar
		Debug.WriteLine("ViewStyleResolved = " & Me.ultraExplorerBar1.ViewStyleResolved.ToString())

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinExplorerBar;


		private void button16_Click(object sender, System.EventArgs e)
		{
			// Set the ViewStyle property to 'Default', then test ViewStyleResolved
			// below for each of the control styles.  
			this.ultraExplorerBar1.ViewStyle = UltraExplorerBarViewStyle.Default;


			// When we set the control style to ExplorerBar, ViewStyleResolved will return XPExplorerBar.
			this.ultraExplorerBar1.Style = UltraExplorerBarStyle.ExplorerBar;
			Debug.WriteLine("ViewStyleResolved = " + this.ultraExplorerBar1.ViewStyleResolved.ToString());


			// When we set the control style to Listbar, ViewStyleResolved will return XP.
			this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar;
			Debug.WriteLine("ViewStyleResolved = " + this.ultraExplorerBar1.ViewStyleResolved.ToString());


			// When we set the control style to Toolbox, ViewStyleResolved will return XP.
			this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Toolbox;
			Debug.WriteLine("ViewStyleResolved = " + this.ultraExplorerBar1.ViewStyleResolved.ToString());


			// Of course, we can explicitly set the ViewStyle property for any control style to
			// override the default.
			this.ultraExplorerBar1.ViewStyle = UltraExplorerBarViewStyle.XPExplorerBar;


			// When we set the control style to Listbar, ViewStyleResolved now returns XPExplorerBar;
			this.ultraExplorerBar1.Style = UltraExplorerBarStyle.Listbar;
			Debug.WriteLine("ViewStyleResolved = " + this.ultraExplorerBar1.ViewStyleResolved.ToString());
		}
参照