Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] How to move Caret to End of Run?

$
0
0

For find the Start and End carets of a TextBlock, that will work. However, I am trying to do that for a Run. Using:

RunCP	currentRun = runCaret->GetCurrentRunCP();

 

 

will get the Start of the Run, but there is no equivalent "runCaret->GetCurrentRunEndCP()". I'm using this instead:

CaretPtr		nextRun = runCaret->Clone();
if ( SUCCESS != nextRun->MoveToNextRun() )
	nextRun = textBlock->CreateEndCaret();

 

 

but I'm getting a "linefeed" included when the Run is the last Run in a Paragraph.

 

Bruce


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>