TickBar.Ticks 属性

定义

获取或设置刻度线的位置。Gets or sets the positions of the tick marks.

public:
 property System::Windows::Media::DoubleCollection ^ Ticks { System::Windows::Media::DoubleCollection ^ get(); void set(System::Windows::Media::DoubleCollection ^ value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Media.DoubleCollection Ticks { get; set; }
member this.Ticks : System.Windows.Media.DoubleCollection with get, set
Public Property Ticks As DoubleCollection

属性值

指定刻度线位置的 DoubleCollectionA DoubleCollection that specifies the locations of the tick marks. 默认值为 nullThe default value is null.

属性

注解

Ticks 属性定义的刻度线超出 MinimumMaximum 属性值定义的范围内,则不会显示。Tick marks that are defined by the Ticks property and that are outside the range that is defined by the Minimum and Maximum property values do not appear.

如果设置了 Ticks 属性,则不使用 TickFrequency 属性。When the Ticks property is set, the TickFrequency property is not used.

依赖项属性信息Dependency Property Information

标识符字段Identifier field TicksProperty
元数据属性设置为 trueMetadata properties set to true AffectsRender

适用于

另请参阅