Annotation.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 virtual bool IsSizeAlwaysRelative { get; set; }
member this.IsSizeAlwaysRelative : bool with get, set
Public Overridable Property IsSizeAlwaysRelative As Boolean

属性值

Boolean

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

注解

批注的高度和宽度可以在相对图表中或轴坐标中进行设置。The height and width of an annotation may be set in relative chart or in axes coordinates. 相对图表坐标为默认值。Relative chart coordinates are the default.

若要在轴坐标中表达批注的大小,请将 IsSizeAlwaysRelative 属性设置为 falseTo express the size of an annotation in axes coordinates, set the IsSizeAlwaysRelative property to false. 然后将批注定位到数据点,或设置 AxisXAxisY 属性。Then anchor the annotation to a data point or set the AxisX and AxisY properties.

适用于