Chart.SizeWithWindow Property

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 (in Microsoft.Office.Tools.Excel.dll)

Syntax

'Declaration
Property SizeWithWindow As Boolean
    Get
    Set
bool SizeWithWindow { get; set; }

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 Interface

Microsoft.Office.Tools.Excel Namespace