Custom Line Number Width

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by NSXDavid
We're using SyntaxEditor to also be an output control for a global find feature. We are putting the file/line number of each result into the custom line number field, which works great (and meets another feature goal I don't need to mention here). Anyway, the problem is... is there a way to make the line number region auto-size? There's no way to tell how big we need to make it... filenames can vary a lot.

-- David

ps. The documentaiton seems to be missing most stuff related to locations now. You just get This Page cannot be displayed in the help. Like try and click on "LocationToPosition" in the "Offset, Positions, and Locations" page. We actually need to do LocationToPosition... is that still supported?

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Typo. :) Thanks for letting us know.

It should be EditorView.OffsetFromLocation and EditorView.PositionFromLocation.

Also, there isn't a way to auto-size right now. Your best bet is to calculate the length of the longest string you will display and base the column width on that.

[Modified at 09/20/2005 04:22 PM]

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.