Hi, I am using UltraCheckEditors that will have line wraps from time to time to fit the text. That's fine. Is there a property (or other way) for me to check if the text has wrapped so I can update the CheckAlign property? Before I even try, is CheckAlign a Get or Get-Set property during runtime? I'm using 2010 Vol 3, with 2012 Vol 1 available.
Thanks
:)
Fantastic!!! That worked perfetly. Thanks...you guys rock!!
Hi,
Maybe one possible approach could to check if the text is wrapped could be if you are using :
Graphics gr = ultraCheckEditor1.CreateGraphics(); SizeF sz = gr.MeasureString(ultraCheckEditor1.Text, ultraCheckEditor1.Font); if (ultraCheckEditor1.Width <= (int)sz.Width + 15) { MessageBox.Show("Wrap"); }
Graphics gr = ultraCheckEditor1.CreateGraphics();
SizeF sz = gr.MeasureString(ultraCheckEditor1.Text, ultraCheckEditor1.Font);
if (ultraCheckEditor1.Width <= (int)sz.Width + 15)
{
MessageBox.Show("Wrap");
}
If you ask me about "+ 15" - it is the size of check box.
Please let me know if you have any questions.
Regards