LineAnnotation.IsSizeAlwaysRelative 属性

定义

获取或设置一个标志,该标志指定是否始终用相对图表坐标来定义批注的大小。Gets or sets a flag that specifies whether the size of an annotation is always defined in relative chart coordinates.

public:
 virtual property bool IsSizeAlwaysRelative { bool get(); void set(bool value); };
public override bool IsSizeAlwaysRelative { get; set; }
member this.IsSizeAlwaysRelative : bool with get, set
Public Overrides Property IsSizeAlwaysRelative As Boolean

属性值

Boolean

true 如果 Width 批注的和 Height 始终处于图表相对坐标,则为; 否则为 falsetrue if the Width and Height of an annotation are always in chart relative coordinates; otherwise, false.

注解

批注的宽度和高度可以在相对图表中或轴坐标中进行设置。The width and height of an annotation may be set in relative chart or in axes coordinates. 默认情况下,使用相对图表坐标。By default, relative chart coordinates are used. 若要将轴坐标用于批注大小,请将 IsSizeAlwaysRelative 属性设置为 falseTo use axes coordinates for the annotation size, set the IsSizeAlwaysRelative property to false. 然后将该批注定位到数据点,或设置 AxisXAxisY 属性。Then anchor the annotation to a data point or set the AxisX or AxisY properties.

适用于