Share via


ReportViewer.SizeToReportContent 属性

获取或设置一个值,该值指示**“ReportViewer”**控件是否应自动调整大小以容纳报表内容。

命名空间:  Microsoft.Reporting.WebForms
程序集:  Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)

语法

声明
<WebBrowsableAttribute(True)> _
Public Property SizeToReportContent As Boolean
    Get
    Set
用法
Dim instance As ReportViewer
Dim value As Boolean

value = instance.SizeToReportContent

instance.SizeToReportContent = value
[WebBrowsableAttribute(true)]
public bool SizeToReportContent { get; set; }
[WebBrowsableAttribute(true)]
public:
property bool SizeToReportContent {
    bool get ();
    void set (bool value);
}
[<WebBrowsableAttribute(true)>]
member SizeToReportContent : bool with get, set
function get SizeToReportContent () : boolean
function set SizeToReportContent (value : boolean)

属性值

类型:System.Boolean
一个 Boolean 值。值 true 指示该控件应自动调整大小以容纳报表内容。默认值为 false。

请参阅

参考

ReportViewer 类

Microsoft.Reporting.WebForms 命名空间