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.
Unfortunately, activation email could not send to your email. Please try again.

GDIUtils.DrawActiveRectangle

Thread ID:

Created:

Updated:

Platform:

Replies:

99991 Jun 24,2011 10:20 AM Jun 29,2011 02:58 AM Windows Forms 1
loading
Tags: HTMLUIControl
Randolph Webb
Asked On June 24, 2011 10:20 AM

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



Iniyen M A [Syncfusion]
Replied On June 29, 2011 02:58 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;