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.
Syncfusion Feedback

question

Thread ID:

Created:

Updated:

Platform:

Replies:

52690 Dec 1,2006 06:46 PM UTC Dec 1,2006 08:54 PM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Administrator [Syncfusion]
Asked On December 1, 2006 06:46 PM UTC

Is there a way for make a text overlap a rectangle?. In other words make the text visible and not invisible when the rectangle has a background with color.

Administrator [Syncfusion]
Replied On December 1, 2006 08:54 PM UTC

Hi Douglas,

It is possible to fill the rectangle with some color and draw a text over it. Could you please refer the following lines.

// Draw the rectangle
doc.LastPage.Graphics.DrawRectangle(new RectangleF(100,70,200,100),state);
state.ForeColor=Color.White;
doc.LastPage.Graphics.DrawMultiText(new PointF(170,110),100,"Visible Text",font,state);

We can make the text invisible by setting the property state’s back color value same as rectangle’s back color value.

Here is the sample for your reference.
Rectangle.zip

Could you please take a look at this and let me if you have any other problems.

Regards,
Prakash.


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.

Warning Icon 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.Close Icon

;