Welcome Guest Search | Active Topics | Sign In | Register

[EO.Pdf] Extra Space added to AcmText Options
Randy Hodges
Posted: Monday, June 22, 2015 11:33:46 AM
Rank: Newbie
Groups: Member

Joined: 6/22/2015
Posts: 3
I am using C# in an ASP.NET Web MVC5 application.

When creating an AcmText object with a string that begins with a space, the AcmText.Text contains an additional space at the beginning.

Ex.
Code: C#
string line = " This line starts with a single space.";
AcmText lineText = new AcmText( line );

bool linesAreEqual = lineText.Text == line;
//linesAreEqual is false because now lineText.Text has two spaces at the beginning.
eo_support
Posted: Tuesday, June 23, 2015 8:03:45 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,201
Hi,

Thanks for posting in the forum. We have looked into this issue and the problem is caused by AcmText's AutoTrim feature. You can use the following code to workaround the problem:

Code: C#
AcmText lineText = new AcmText();
lineText.AutoTrim = false;
lineText.Text = line;


Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.