We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GDIUtils.DrawActiveRectangle

Hello Vallarasu

I have a question about the GDIUtils.DrawActiveRectangle
DOC DESCRIPTION: Draws an active rectangle.

- Is there a sample demonstrating usage
- What is the ActiveRectangle

Thanks,

Randolph



1 Reply

IM Iniyen M A Syncfusion Team June 29, 2011 06:58 AM UTC

Hi Randolph,

Thanks for your interest in Syncfusion products.

DrawActiveRectangle(Graphics graph, Rectangle rect, HightlightStyle state) Method will draw an active rectangle by blue color.

And the parameters "graph" resembles that the Graphic context where the rectangle must be drawn, "rect" Destination rectangle and "state" state of rectangle.Influence on colors by which rectangle will be drawn.

For more information i have included the code snippet as follows.

protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
Syncfusion.HTMLUI.Base.Utility.GDIUtils util = new Syncfusion.HTMLUI.Base.Utility.GDIUtils();
util.DrawActiveRectangle(e.Graphics, this.ClientRectangle, Syncfusion.HTMLUI.Base.Utility.HightlightStyle.Active);
}

By this code you will see a blue rectangle on the forms border

Please Let us know if you need furthre assistance.

Regards,
Iniyen M.A.


Loader.
Live Chat Icon For mobile
Up arrow icon