ComponentOne RadialGauge for ASP.NET Web Forms
C1RadialGauge Concepts / Task-Based Help / Resizing the Control
In This Topic
    Resizing the Control
    In This Topic

    You can easily change the height and width on the C1RadialGauge by setting the Height and Width properties. By default the height of the control is set to 400px and the width of the control is set to 600px. You can easily change the control's height and width in Source view, from the Properties window, or in code.

    In Source View

    In Source view add Height="200px" and Width="300px" in the <cc1:C1RadialGauge> tag to the size you wish to set the control's height and width to, for example:


    <cc1:C1RadialGauge ID="C1RadialGauge1" runat="server" Height="200px" Width="300px">

    The above will resize the control to 200 pixels tall and 300 pixels wide.

    From the Properties Window
    You can change the Height and Width properties to set the control's height and width in the Properties window:

    1. Click on the C1RadialGauge to select it.
    2. Navigate to the Properties window and if needed expand the Layout node to locate the Height and Width properties.
    3. Next to Height, enter a value for the size you want the control's height to be, for example "200px".
    4. Next to Width, enter a value for the size you want the control's width to be, for example "300px".
    5. Press the ENTER key or click outside of the Properties window for the height and width you set to be applied to the C1RadialGauge control.

    In Code
    Add the following code to the Page_Load event to set the Height and Width properties to 200 pixels tall and 300 pixels wide:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1RadialGauge1.Height = 200
    Me.C1RadialGauge1.Width = 300

    To write code in C#

    C#
    Copy Code
    this.C1RadialGauge1.Height = 200;
    this.C1RadialGauge1.Width = 300;
    See Also