ReportViewer.ZoomMode 屬性

取得或設定控制項的縮放模式。

命名空間: Microsoft.Reporting.WebForms
組件: Microsoft.ReportViewer.WebForms (在 microsoft.reportviewer.webforms.dll)

語法

'宣告
<DefaultValueAttribute(ZoomMode.Percent)> _
<SRDescriptionAttribute("ZoomModeDesc")> _
<WebBrowsableAttribute(True)> _
<CategoryAttribute("Appearance")> _
Public Property ZoomMode As ZoomMode
'用途
Dim instance As ReportViewer
Dim value As ZoomMode

value = instance.ZoomMode

instance.ZoomMode = value
[DefaultValueAttribute(ZoomMode.Percent)] 
[SRDescriptionAttribute("ZoomModeDesc")] 
[WebBrowsableAttribute(true)] 
[CategoryAttribute("Appearance")] 
public ZoomMode ZoomMode { get; set; }
[DefaultValueAttribute(ZoomMode::Percent)] 
[WebBrowsableAttribute(true)] 
[CategoryAttribute(L"Appearance")] 
public:
ZoomMode ZoomMode {
    ZoomMode get ();
    void set (ZoomMode value);
}
/** @property */
public ZoomMode get_ZoomMode ()

/** @property */
public void set_ZoomMode (ZoomMode value)
public function get ZoomMode () : ZoomMode

public function set ZoomMode (value : ZoomMode)

屬性值

指出控制項縮放模式的 ZoomMode 列舉值。預設值是 100%。

備註

[縮放] 下拉式清單包含下列選項:500%、200%、150%、100%、75%、50%、25%、[頁寬] 和 [整頁]。在 [一般] 模式中,預設選項是 100%。在 [列印預覽] 模式中,預設選項是 [整頁]。

當控制項是 [列印預覽] 模式時,[頁寬] 和 [整頁] 選項會利用實體頁面的尺寸來計算縮放係數。

當控制項不是列印預覽模式時,[頁寬] 和 [整頁] 選項會利用邏輯頁面的尺寸來計算縮放係數。

另請參閱

參考

ReportViewer 類別
ReportViewer 成員
Microsoft.Reporting.WebForms 命名空間