バージョン

AppearancePropFlags 列挙体

ビットフラグを使用して、AppearanceData構造の各プロパティを一意に識別します。
シンタックス
'宣言
 
Public Enum AppearancePropFlags 
   Inherits System.Enum
public enum AppearancePropFlags : System.Enum 
メンバ
メンバ解説
AllImageBackgroundPropsmageBackground、ImageBackgroundDisabled、 ImageBackgroundAlpha、ImageBackgroundOrigin、 ImageBackgroundStretchMargins、および ImageBackgroundStyle などの ImageBackground プロパティの複合フラグ。
AllImagePropsImage、ImageAlpha、ImageHAlign、ImageVAlign、および ThemedElementAlpha のような Image プロパティの組み合わされたフラグ。ImageBackground プロパティを含みません。
AllRenderCursor 以外のすべてのプロパティ
AllRenderAndCursorすべてのプロパティ
AlphaLevelAlphaLevelプロパティを識別するID
BackColorBackColorプロパティを識別するID
BackColor2BackColor2プロパティを識別するID
BackColorAlphaBackColorAlphaプロパティを識別するID
BackColorDisabledBackColorDisabledプロパティを識別するID
BackColorDisabled2BackColorDisabled2プロパティを識別するID
BackGradientAlignmentBackGradientが、その基点と範囲に基づいてどのように配置されるかを決定します。
BackGradientStyleBackGradientStyleプロパティを識別するID
BackHatchStyleBackHatchStyleプロパティを識別するID
BorderAlphaBorderAlphaプロパティを識別するID
BorderColor境界線の色。
BorderColor2グラデーションに使用される境界線の 2 番目の色
BorderColor3DBase凹凸の立体境界線スタイルで影とハイライトの色を作成するために使用される基本色。BorderColor3Dbaseが設定されない場合、BackColorが使用されます。
CursorCursorプロパティを識別するID
FontBoldFontBoldプロパティを識別するID
FontDataFontDataプロパティを識別するID
FontItalicFontItalicプロパティを識別するID
FontNameFontNameプロパティを識別するID
FontSizeTextTrimmingプロパティを識別するID
FontStrikeoutFontStrikeoutプロパティを識別するID
FontUnderlineFontUnderlineプロパティを識別するID
ForeColorForeColorプロパティを識別するID
ForeColorDisabledForeColorDisabledプロパティを識別するID
ForegroundAlphaForegroundAlphaプロパティを識別するID
ImageImageプロパティを識別するID
ImageAlphaImageAlphaプロパティを識別するID
ImageBackgroundImageBackgroundプロパティを識別するID
ImageBackgroundAlphaImageBackgroundAlphaプロパティを識別するID
ImageBackgroundDisabledAppearance.ImageBackgroundStyleStretched に設定されるとき、Appearance.ImageBackground を描画するときに使用されるマージンを決定します。
ImageBackgroundOriginImageBackgroundOriginプロパティを識別するID
ImageBackgroundStretchMarginsAppearance.ImageBackgroundStyleStretched に設定されるとき、Appearance.ImageBackground を描画するときに使用されるマージンを決定します。
ImageBackgroundStyleImageBackgroundStyleプロパティを識別するID
ImageHAlignImageHAlignプロパティを識別するID
ImageVAlignImageVAlignプロパティを識別するID
TextHAlignTextHAlignプロパティを識別するID
TextTrimmingTextTrimmingプロパティを識別するID
TextVAlignTextVAlignプロパティを識別するID
ThemedElementAlphaThemedElementAlphaプロパティを識別するID
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinListBar

Private Sub button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button5.Click

    Dim appData As AppearanceData
    Dim requestedProps As AppearancePropFlags

    ' ---------------------------------
    ' Resolve the appearance of a group 
    ' ---------------------------------

    ' Get the group object.
    Dim grp As Group = Me.ultraListBar1.Groups(0)

    ' Initialize the appearance data structure		
    appData = New AppearanceData()

    ' Specify which appearance properties we want to resolve.
    ' In this case just the backcolor and forecolor.
    requestedProps = AppearancePropFlags.BackColor Or AppearancePropFlags.ForeColor

    ' Call the group's 'ResolveAppearance' method .
    grp.ResolveAppearance(appData, requestedProps)

    ' Note: The reason that the 'requestedProps' parameter
    ' is also passed in by reference is that as each requested
    ' property is resolved its bit is stripped out of the
    ' passed in parameter. On return from the call the only
    ' bits remaining in 'requestedProps' will be those 
    ' properties which were not resolved. Normally,
    ' 'requestedProps' has no bits set after the call returns.

    ' Write out the resolved colors
    Debug.WriteLine("BackColor: " + appData.BackColor.ToString() + ", ForeColor: " + appData.ForeColor.ToString())

    ' --------------------------------------------
    ' Resolve the appearance of the group's header
    ' --------------------------------------------

    ' Re-initialize the appearance data structure 
    appData = New AppearanceData()

    ' Specify which appearance properties we want to resolve.
    ' In this case we want all 'Render' properties. This
    ' includes every property but the 'Cursor' property.
    requestedProps = AppearancePropFlags.AllRender

    ' Call the group's 'ResolveHeaderAppearance' method.
    grp.ResolveHeaderAppearance(appData, requestedProps)

    ' Write out the resolved gradient related properties.
    Debug.WriteLine("BackGradientStyle: " + appData.BackGradientStyle.ToString() + ", BackColor: " + appData.BackColor.ToString() + ", BackColor2: " + appData.BackColor2.ToString())


    ' ------------------------
    ' Resolve item appearances
    ' ------------------------

    ' The group's 'ResolveItemAppearance' method will
    ' resolve the default appearance for items in the group.
    'grp.ResolveItemAppearance(appData, requestedProps)

    ' The 'Item' object also exposes a 'ResolveAppearance'
    ' method for resolving the appearance of that item.
    'grp.Items(0).ResolveAppearance(appData, requestedProps)

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

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

	AppearanceData appData;
	AppearancePropFlags requestedProps;

	// ---------------------------------
	// Resolve the appearance of a group 
	// ---------------------------------

	// Get the group object.
	Group group = this.ultraListBar1.Groups[0];
	
	// Initialize the appearance data structure		
	appData = new AppearanceData();

	// Specify which appearance properties we want to resolve.
	// In this case just the backcolor and forecolor.
	requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor;

	// Call the group's 'ResolveAppearance' method .
	group.ResolveAppearance( ref appData, ref requestedProps );
	
	// Note: The reason that the 'requestedProps' parameter
	// is also passed in by reference is that as each requested
	// property is resolved its bit is stripped out of the
	// passed in parameter. On return from the call the only
	// bits remaining in 'requestedProps' will be those 
	// properties which were not resolved. Normally,
	// 'requestedProps' has no bits set after the call returns.

	// Write out the resolved colors
	Debug.WriteLine("BackColor: " + appData.BackColor.ToString() + ", ForeColor: " + appData.ForeColor.ToString() );

	// --------------------------------------------
	// Resolve the appearance of the group's header
	// --------------------------------------------

	// Re-initialize the appearance data structure 
	appData = new AppearanceData();
	
	// Specify which appearance properties we want to resolve.
	// In this case we want all 'Render' properties. This
	// includes every property but the 'Cursor' property.
	requestedProps = AppearancePropFlags.AllRender;

	// Call the group's 'ResolveHeaderAppearance' method.
	group.ResolveHeaderAppearance( ref appData, ref requestedProps );

	// Write out the resolved gradient related properties.
	Debug.WriteLine("BackGradientStyle: " + appData.BackGradientStyle.ToString() + ", BackColor: " + appData.BackColor.ToString() + ", BackColor2: " + appData.BackColor2.ToString() );
		

	// ------------------------
	// Resolve item appearances
	// ------------------------

	// The group's 'ResolveItemAppearance' method will
	// resolve the default appearance for items in the group.
	//group.ResolveItemAppearance( ref appData, ref requestedProps );
		
	// The 'Item' object also exposes a 'ResolveAppearance'
	// method for resolving the appearance of that item.
	//group.Items[0].ResolveAppearance( ref appData, ref requestedProps );
		
}
参照