ToolStrip::Stretch Property

 

Gets or sets a value indicating whether the ToolStrip stretches from end to end in the ToolStripContainer.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property bool Stretch {
	virtual bool get() sealed;
	virtual void set(bool value) sealed;
}

Property Value

Type: System::Boolean

true if the ToolStrip stretches from end to end in its ToolStripContainer; otherwise, false. The default is false.

Use the Stretch property to get or set whether the ToolStrip automatically fills its container.

The following code example demonstrates the syntax for setting common ToolStrip properties, including the Stretch property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: