Skip to content

OSResWinForms

Amit Barami edited this page Feb 12, 2018 · 1 revision

ResponsiveControlData

Object used to save responsive control original data.

public struct OSResWinForms.ResponsiveControlData

Fields

Type Name Summary
Control Base The original control to base this object on.
Font OriginalFont Original control font data.
Size OriginalSize Original control size.

RForm

Responsive form data object.

public class OSResWinForms.RForm

Fields

Type Name Summary
FormWindowState CurrentWindowState Original form data.
Form Form The base form.
FormWindowState OriginalWindowState Original form data.
Dictionary<Control, ResponsiveControlData> ResponsiveControlsData Collection of responsive control data objects for any control within the form.
ResponsiveControlData ResponsiveFormData Responsive control data object for the form itself.

Methods

Type Name Summary
void ResetControls(ControlCollection cc) Resets control sizes.
void ResizeControls(ControlCollection cc, SizeF ratio) Resizes any control within the collection based on a given ratio.
void SaveControls(ControlCollection cc) Saves the original data of the controls.

RWF

Provides initialization methods for WinForms responsiveness.

public static class OSResWinForms.RWF

Static Fields

Type Name Summary
ResFlags Fixes Flags for additional fixes.
ResFlags[] Flags
Dictionary<Form, RForm> ResponsiveObjects Collection of responsive controls.

Static Properties

Type Name Summary
Size DesignTimeResolution Screen resolution at design time.
SizeF MulFac Multiplication factor for resizing controls.
Rectangle UserResolution Screen resolution of the user.

Static Methods

Type Name Summary
RForm ApplyResponsiveness(Form f) Applies the responsive form effect.
RForm GetReponsivenessObject(this Form f) Gets a responsive form object bounded to a form.
Boolean HasProperty(Type type, String name)
void Initialize(Size devRes, Rectangle cliRes) Initialize OsRwf with screen resolution info.
void Initialize(Size devRes) Initialize OsRwf with screen resolution info.
void Initialize(Rectangle cliRes) Initialize OsRwf with screen resolution info.
void Initialize() Initialize OsRwf with screen resolution info.
void UseResFixFlags(ResFlags flags) Flag additional fixes.
Clone this wiki locally