Chart.RenderType 属性


获取或设置用于显示图表图像的呈现方法。Gets or sets the rendering method used to display a chart image.

 property System::Web::UI::DataVisualization::Charting::RenderType RenderType { System::Web::UI::DataVisualization::Charting::RenderType get(); void set(System::Web::UI::DataVisualization::Charting::RenderType value); };
public System.Web.UI.DataVisualization.Charting.RenderType RenderType { get; set; }
member this.RenderType : System.Web.UI.DataVisualization.Charting.RenderType with get, set
Public Property RenderType As RenderType


一个 RenderType 枚举值,表示用于显示图表图像的呈现方法。A RenderType enumeration value that represents the rendering method used to display a chart image.



下面的列表介绍了可用于呈现图表图像的三种方式:The following list describes the three ways in which a chart image can be rendered:

  • ImageTag呈现类型会导致临时文件保存在服务器的磁盘上。The ImageTag render type causes a temporary file to be saved to disk at the server. 图表在客户端使用<IMG > 标记显示,其 SRC 特性设置为ImageLocation属性所指定的 URL。The chart is displayed at the client side using an <IMG> tag, with its SRC attribute set to the URL specified by the ImageLocation property.

  • 如果指定BinaryStreaming了呈现类型,则在服务器上没有临时图像文件。If the BinaryStreaming render type is specified, there are no temporary image files at the server. 相反,图表图像将作为二进制流发送,并使用<IMG > 标记显示,其 SRC 属性设置为另一个负责生成图表图像的 .aspx 页面。Instead, the chart image is sent as a binary stream, and is displayed using an <IMG> tag with its SRC attribute set to another .aspx page that is responsible for generating the chart image.

  • ImageMap呈现类型会导致创建图像映射,但不会导致显示实际的图表图像。A render type of ImageMap causes an image map to be created, but does not result in the display of an actual chart image. 仅当使用呈现类型为的BinaryStreaming图像映射时,才应执行此选项。This option should only be taken when using an image map that has a render type of BinaryStreaming.

请注意,可以使用ImageLocation属性来控制如何将临时图像文件保存到磁盘。Note that you can control how temporary image files are saved to disk using the ImageLocation property.