Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
i insert a block,and the block's textstirng is input by the user, and sometimes the textstring is a litter long, how do i judge the textstring is longer than the block's width. and in textstring,there may contain chinese charactor. thanks
Thanks a lot
and i solve it in another way.
the width is fixed for a block, and the max bytes is also fixed,
so i use System.Text.Encoding.Default.GetByteCount(string) to count all words in bytes number including chinese charactor.