SizeToContent Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets a value that specifies how the current window should be sized relative to its content.

Namespace:  Microsoft.SPOT.Presentation
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Property SizeToContent As SizeToContent
public SizeToContent SizeToContent { get; set; }
public:
property SizeToContent SizeToContent {
    SizeToContent get ();
    void set (SizeToContent value);
}
member SizeToContent : SizeToContent with get, set
function get SizeToContent () : SizeToContent
function set SizeToContent (value : SizeToContent)

Property Value

Type: Microsoft.SPOT.Presentation. . :: . .SizeToContent
A value that specifies how the current window should be sized relative to its content. Note that the default return value is Manual.

Remarks

This property has the following limitations:

  • If you set the window's SizeToContent property to WidthAndHeight, you cannot programmatically alter the window's Height property or Width property.

  • If you set the window's SizeToContent property to Height, you can still programmatically alter the window's Height property.

  • If you set the window's SizeToContent property to Width, you can still programmatically alter the window's Width property.

  • If a user manually changes the window's size, autosizing is disabled and the window's SizeToContent property is set to Manual by default.

.NET Framework Security

See Also

Reference

Window Class

Microsoft.SPOT.Presentation Namespace