ISECEditBuffer::SetLineEnd

voidISECEditBuffer::SetLineEnd(TCHARchLineEnd)

Sets the character that will be used to determine the line ends in the text buffer

Defined in: ISECEditBuffer.h

Return Value

void

Parameters

chLineEnd

The line end character.

Developer Notes

The character returned by GetLineEnd will be used to determine the line ends for lines of text in this text buffer. The visible length of this line will be calculated by finding the characters up to the character returned by GetLineBreakChar or GetLineEnd. For example, in Developer Studio\'a9 , a line can be terminated with the \\r\\n combination or by \\n. To emulate this behavior in Objective Edit, the line break character should be set to \\r and the line end character should be set to \\n. (This is the default setting)

This could be used in the situation where you wanted to "hide" some data at the end of line, for example: This is a line\\rHidden text\\n
Objective Edit would report the length of this line as 27, and the visible portion of the line as 14. Only the first 14 characters of this line would be rendered.

See Also

ISECEditBuffer  GetLineEnd  GetLineBreakChar  SetLineBreakChar