Version

Appearance Property (TickmarkSettingsBase)

Gets or sets the appearance of the tickmarks.
Syntax
'Declaration
 
Public Property Appearance As AppearanceBase
public AppearanceBase Appearance {get; set;}
Example
Imports Infragistics.Win.UltraWinEditors

        'Set up the major tickmarks. 
        Me.UltraTrackBar1.TickmarkSettingsMajor.Appearance.BackColor = Color.Red
        Me.UltraTrackBar1.TickmarkSettingsMajor.Extent = 10
        Me.UltraTrackBar1.TickmarkSettingsMajor.Frequency = 25
        Me.UltraTrackBar1.TickmarkSettingsMajor.Location = TickmarkLocation.BottomOrRight
        Me.UltraTrackBar1.TickmarkSettingsMajor.Thickness = 2
        Me.UltraTrackBar1.TickmarkSettingsMajor.TrackOffset = 3
        Me.UltraTrackBar1.TickmarkSettingsMajor.Visible = Infragistics.Win.DefaultableBoolean.True

        ' Set up the minor tickmarks. 
        Me.UltraTrackBar1.TickmarkSettingsMinor.Appearance.BackColor = Color.Green
        Me.UltraTrackBar1.TickmarkSettingsMinor.Extent = 5
        Me.UltraTrackBar1.TickmarkSettingsMinor.Frequency = 5
        Me.UltraTrackBar1.TickmarkSettingsMinor.Location = TickmarkLocation.BottomOrRight
        Me.UltraTrackBar1.TickmarkSettingsMinor.Thickness = 1
        Me.UltraTrackBar1.TickmarkSettingsMinor.TrackOffset = 3
        Me.UltraTrackBar1.TickmarkSettingsMinor.Visible = Infragistics.Win.DefaultableBoolean.True

        ' Set up the midpoint tickmarks. 
        ' Note that we do not set the MidPointSettings.Value here. This is because we don't want
        ' to change the midpoint, just draw a tickmark in middle. 
        Me.UltraTrackBar1.MidpointSettings.Appearance.BackColor = Color.Purple
        Me.UltraTrackBar1.MidpointSettings.Extent = 15
        Me.UltraTrackBar1.MidpointSettings.Location = TickmarkLocation.Center
        Me.UltraTrackBar1.MidpointSettings.Thickness = 3
        Me.UltraTrackBar1.MidpointSettings.TrackOffset = 0
        Me.UltraTrackBar1.MidpointSettings.Visible = Infragistics.Win.DefaultableBoolean.True
using Infragistics.Win.UltraWinEditors;

            //Set up the major tickmarks. 
            this.ultraTrackBar1.TickmarkSettingsMajor.Appearance.BackColor = Color.Red;            
            this.ultraTrackBar1.TickmarkSettingsMajor.Extent = 10;
            this.ultraTrackBar1.TickmarkSettingsMajor.Frequency = 25;
            this.ultraTrackBar1.TickmarkSettingsMajor.Location = TickmarkLocation.BottomOrRight;
            this.ultraTrackBar1.TickmarkSettingsMajor.Thickness = 2;
            this.ultraTrackBar1.TickmarkSettingsMajor.TrackOffset = 3;
            this.ultraTrackBar1.TickmarkSettingsMajor.Visible = Infragistics.Win.DefaultableBoolean.True;

            // Set up the minor tickmarks. 
            this.ultraTrackBar1.TickmarkSettingsMinor.Appearance.BackColor = Color.Green;
            this.ultraTrackBar1.TickmarkSettingsMinor.Extent = 5;
            this.ultraTrackBar1.TickmarkSettingsMinor.Frequency = 5;
            this.ultraTrackBar1.TickmarkSettingsMinor.Location = TickmarkLocation.BottomOrRight;
            this.ultraTrackBar1.TickmarkSettingsMinor.Thickness = 1;
            this.ultraTrackBar1.TickmarkSettingsMinor.TrackOffset = 3;
            this.ultraTrackBar1.TickmarkSettingsMinor.Visible = Infragistics.Win.DefaultableBoolean.True;
                        
            // Set up the midpoint tickmarks. 
            // Note that we do not set the MidPointSettings.Value here. This is because we don't want
            // to change the midpoint, just draw a tickmark in middle. 
            this.ultraTrackBar1.MidpointSettings.Appearance.BackColor = Color.Purple;            
            this.ultraTrackBar1.MidpointSettings.Extent = 15;
            this.ultraTrackBar1.MidpointSettings.Location = TickmarkLocation.Center;
            this.ultraTrackBar1.MidpointSettings.Thickness = 3;
            this.ultraTrackBar1.MidpointSettings.TrackOffset = 0;
            this.ultraTrackBar1.MidpointSettings.Visible = Infragistics.Win.DefaultableBoolean.True;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also