ComponentOne Sizer for WinForms
C1.Win.Sizer.6 Assembly / C1.Win.Sizer Namespace / C1SizerLight Class
Members

In This Topic
    C1SizerLight Class
    In This Topic
    Component that resizes all controls on a form when the form is resized.
    Object Model
    C1SizerLight Class
    Syntax
    'Declaration
     
    Public Class C1SizerLight 
       Inherits System.ComponentModel.Component
    public class C1SizerLight : System.ComponentModel.Component 
    Remarks

    When you add a C1SizerLight component to a form, it keeps track of the forms' size and position. When the form is resized, C1SizerLight resizes all contained controls proportionally, so the form retains its appearance at any resolution.

    C1SizerLight can also resize the fonts on all or some of the contained controls.

    You will rarely have to write any code in order to use the C1SizerLight component. In most applications, you will simply design forms as usual, then add a C1SizerLight component to the form and let it resize all controls on the form automatically, when the form is resized.

    In some cases, you may want to control how fonts are resized when the form dimensions change. You can prevent all font resizing by setting the ISizerLight.ResizeFonts property to false. Or you can keep the font size constant for certain controls by handling the ISizerLight.ResizingFont event.

    Note that the C1SizerLight component does not work at design time. This allows you to resize your form without affecting the layout of the controls on the form.

    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             C1.Win.Sizer.C1SizerLight

    See Also