Print Page | Close Window

Markup: Clip to bounding rectangle?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11249
Printed Date: 31 May 2024 at 7:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup: Clip to bounding rectangle?
Posted By: znakeeye
Subject: Markup: Clip to bounding rectangle?
Date Posted: 29 June 2008 at 8:08am
Consider this sample:
<Run FontSize='12'>ABC</Run><Run FontSize='14'>xxx</Run>
 
In all cases, 12 points will be sufficient to hold the text. However, the text gets pushed down when a font size of 14 points is encountered.
 
How do I "trim" the rectangle, and center it vertically?
 
I tried this in the Markup Sample:
<TextBlock ClipToBound='True'>Test</TextBlock>
 
But that yields an error:
The property 'ClipToBound' does not exist in XML namespace.



Replies:
Posted By: Oleg
Date Posted: 30 June 2008 at 1:36am
Hi,
 
try ClipToBounds (Error in our readme)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net