バージョン

ResolveSideStripAppearance メソッド

ポップアップ メニューのSideStrip Appearanceを解決します。
シンタックス
'宣言
 
Public Sub ResolveSideStripAppearance( _
   ByVal popupMenu As PopupMenuTool, _
   ByRef appearance As Infragistics.Win.AppearanceData, _
   ByRef requestedProps As Infragistics.Win.AppearancePropFlags _
) 
public void ResolveSideStripAppearance( 
   PopupMenuTool popupMenu,
   ref Infragistics.Win.AppearanceData appearance,
   ref Infragistics.Win.AppearancePropFlags requestedProps
)

パラメータ

popupMenu
そのサイド ストリップの外観を解決しているポップアップ メニュー。
appearance
外観設定を格納する構造体。
requestedProps
要求された外観プロパティを示すビットフラグ。
使用例
Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

	Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button28.Click

		Dim appearanceData As AppearanceData
		Dim requestedProps As AppearancePropFlags


		' Resolve the appearance for the UltraToolbarManager's component and write the
		' names of the resolved forecolor and backcolor to the output window.
		AppearanceData = New AppearanceData()
		requestedProps = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor
		Me.UltraToolbarsManager1.ResolveAppearance(appearanceData, requestedProps)

		Debug.WriteLine("The resolved colors for UltraToolbarsManager are, ForeColor: " + AppearanceData.ForeColor.ToString() + ", BackColor: " + AppearanceData.BackColor.ToString())


		' Iterate through the root tools collection and resolve the MenuItemCheckMarkAppearance,
		' PopupAppearance and PopupItemAppearance for each PopupMenuTool and write the names of
		' the resolved forecolor and backcolor to the output window.
		Debug.WriteLine("Processing popup menu tools and resolving appearances -----------------")
		Debug.IndentLevel += 1

		Dim tool As ToolBase
		For Each tool In Me.UltraToolbarsManager1.Tools
			If (tool.GetType() Is GetType(PopupMenuTool)) Then
				Dim popupMenuTool As PopupMenuTool = tool

				Debug.WriteLine("Resolving appearances for PopupMenu '" + popupMenuTool.Key + "' are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString())
				Debug.IndentLevel += 1


				' Resolve the popup menu's MenuItemCheckMarkAppearance.
				appearanceData = New AppearanceData()
				requestedProps = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor
				Me.UltraToolbarsManager1.ResolveMenuItemCheckMarkAppearance(popupMenuTool, appearanceData, requestedProps, False)

				Debug.WriteLine("The resolved colors for MenuItemCheckMarkAppearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString())


				' Resolve the popup menu's PopupAppearance.
				appearanceData = New AppearanceData()
				requestedProps = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor
				Me.UltraToolbarsManager1.ResolvePopupAppearance(popupMenuTool, appearanceData, requestedProps)

				Debug.WriteLine("The resolved colors for PopupAppearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString())


				' Resolve the popup menu's PopupItemAppearance.
				appearanceData = New AppearanceData()
				requestedProps = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor
				Me.UltraToolbarsManager1.ResolvePopupItemAppearance(popupMenuTool, appearanceData, requestedProps, False)

				Debug.WriteLine("The resolved colors for PopupItemAppearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString())


				' Resolve the popup menu's SideStripAppearance.
				appearanceData = New AppearanceData()
				requestedProps = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor
				Me.UltraToolbarsManager1.ResolveSideStripAppearance(popupMenuTool, appearanceData, requestedProps)

				Debug.WriteLine("The resolved colors for SideStripAppearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString())

				Debug.IndentLevel -= 1
			End If
		Next

		Debug.IndentLevel -= 1


		' Iterate through the toolbars collection and resolve ToolbarAppearances and write
		' the names of the resolved forecolor and backcolor to the output window.
		Debug.WriteLine("Processing toolbars and resolving appearances -----------------")
		Debug.IndentLevel += 1

		Dim toolbar As UltraToolbar
		For Each toolbar In Me.UltraToolbarsManager1.Toolbars

			Debug.WriteLine("Resolving appearances for Toolbar '" + toolbar.Key + "' are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString())
			Debug.IndentLevel += 1


			' Resolve the toolbar's Appearance.
			appearanceData = New AppearanceData()
			requestedProps = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor
			Me.UltraToolbarsManager1.ResolveToolbarAppearance(toolbar, appearanceData, requestedProps)

			Debug.WriteLine("The resolved colors for the toolbar's appearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString())

			Debug.IndentLevel -= 1
		Next

		Debug.IndentLevel -= 1

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

		private void button28_Click(object sender, System.EventArgs e)
		{

			AppearanceData		appearanceData;
			AppearancePropFlags requestedProps;


			// Resolve the appearance for the UltraToolbarManager's component and write the
			// names of the resolved forecolor and backcolor to the output window.
			appearanceData = new AppearanceData();
			requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor;
			this.ultraToolbarsManager1.ResolveAppearance(ref appearanceData, ref requestedProps);

			Debug.WriteLine("The resolved colors for UltraToolbarsManager are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString());


			// Iterate through the root tools collection and resolve the MenuItemCheckMarkAppearance,
			// PopupAppearance and PopupItemAppearance for each PopupMenuTool and write the names of
			// the resolved forecolor and backcolor to the output window.
			Debug.WriteLine("Processing popup menu tools and resolving appearances -----------------");
			Debug.IndentLevel++;

			foreach(ToolBase tool in this.ultraToolbarsManager1.Tools)
			{
				if (tool is PopupMenuTool)
				{
					PopupMenuTool popupMenuTool = tool as PopupMenuTool;

					Debug.WriteLine("Resolving appearances for PopupMenu '" + popupMenuTool.Key + "' are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString());
					Debug.IndentLevel++;


					// Resolve the popup menu's MenuItemCheckMarkAppearance.
					appearanceData = new AppearanceData();
					requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor;
					this.ultraToolbarsManager1.ResolveMenuItemCheckMarkAppearance(popupMenuTool, ref appearanceData, ref requestedProps, false);

					Debug.WriteLine("The resolved colors for MenuItemCheckMarkAppearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString());


					// Resolve the popup menu's PopupAppearance.
					appearanceData = new AppearanceData();
					requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor;
					this.ultraToolbarsManager1.ResolvePopupAppearance(popupMenuTool, ref appearanceData, ref requestedProps);

					Debug.WriteLine("The resolved colors for PopupAppearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString());


					// Resolve the popup menu's PopupItemAppearance.
					appearanceData = new AppearanceData();
					requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor;
					this.ultraToolbarsManager1.ResolvePopupItemAppearance(popupMenuTool, ref appearanceData, ref requestedProps, false);

					Debug.WriteLine("The resolved colors for PopupItemAppearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString());


					// Resolve the popup menu's SideStripAppearance.
					appearanceData = new AppearanceData();
					requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor;
					this.ultraToolbarsManager1.ResolveSideStripAppearance(popupMenuTool, ref appearanceData, ref requestedProps);

					Debug.WriteLine("The resolved colors for SideStripAppearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString());

					Debug.IndentLevel--;
				}
			}

			Debug.IndentLevel--;


			// Iterate through the toolbars collection and resolve ToolbarAppearances and write
			// the names of the resolved forecolor and backcolor to the output window.
			Debug.WriteLine("Processing toolbars and resolving appearances -----------------");
			Debug.IndentLevel++;

			foreach(UltraToolbar toolbar in this.ultraToolbarsManager1.Toolbars)
			{

				Debug.WriteLine("Resolving appearances for Toolbar '" + toolbar.Key + "' are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString());
				Debug.IndentLevel++;


				// Resolve the toolbar's Appearance.
				appearanceData = new AppearanceData();
				requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor;
				this.ultraToolbarsManager1.ResolveToolbarAppearance(toolbar, ref appearanceData, ref requestedProps);

				Debug.WriteLine("The resolved colors for the toolbar's appearance are, ForeColor: " + appearanceData.ForeColor.ToString() + ", BackColor: " + appearanceData.BackColor.ToString());

				Debug.IndentLevel--;
			}

			Debug.IndentLevel--;

		}
参照