HostedControl.OptimumSize Property

Definition

The size that the applications's window will initially be if it is a floating window.

public:  virtual property System::Drawing::Size OptimumSize {  public:
System::Drawing::Size get(); protected:
 void set(System::Drawing::Size value); };
[System.ComponentModel.Browsable(false)]
public virtual System.Drawing.Size OptimumSize { get; protected set; }
[<System.ComponentModel.Browsable(false)>]
member this.OptimumSize : System.Drawing.Size with get, set
Public Overridable Property OptimumSize As Size

Property Value

Attributes

Remarks

If a HostedControl is floating and there is no OptimumSize set, the size of the floating window will be determined by the drawn size of the hosted control.

Applies to