'宣言 Public ReadOnly Property TickmarkSettingsMinor As Infragistics.Win.UltraWinEditors.TickmarkSettings
public Infragistics.Win.UltraWinEditors.TickmarkSettings TickmarkSettingsMinor {get;}
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;