Dela via


Chart.SizeWithWindow Property (2007 System)

Gets or sets the value that indicates whether Microsoft Office Excel resizes the Chart control to match the size of the chart sheet window

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property SizeWithWindow As Boolean
'Usage
Dim instance As Chart 
Dim value As Boolean 

value = instance.SizeWithWindow

instance.SizeWithWindow = value
[BrowsableAttribute(false)]
public bool SizeWithWindow { get; set; }
[BrowsableAttribute(false)]
public:
property bool SizeWithWindow {
    bool get ();
    void set (bool value);
}
public function get SizeWithWindow () : boolean 
public function set SizeWithWindow (value : boolean)

Property Value

Type: System.Boolean
true if Excel resizes the Chart control to match the size of the chart sheet window. false if the chart size is not attached to the window size. Applies only to chart sheets, not embedded charts.

.NET Framework Security

See Also

Reference

Chart Class

Chart Members

Microsoft.Office.Tools.Excel Namespace