LegendCell.ImageSize 属性

定义

获取或设置图例单元中的图像的大小。Gets or sets the size of the image in a legend cell.

public:
 virtual property System::Drawing::Size ImageSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.SizeEmptyValueConverter))]
public virtual System.Drawing.Size ImageSize { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.SizeEmptyValueConverter))>]
member this.ImageSize : System.Drawing.Size with get, set
Public Overridable Property ImageSize As Size

属性值

Size

一个 Size 值,该值表示图像的大小。A Size value that represents the size of the image. 默认值为 (0,0),即表示将使用的图像的原始大小。The default value is (0,0), which means the original size of the image will be used.

属性

注解

ImageSize属性用于显式设置图例单元图像的宽度和高度。The ImageSize property is used to explicitly set the width and height of the legend cell image.

仅当属性设置为时,此属性才适用 CellType ImageThis property is only applicable if the CellType property is set to Image.

适用于