Gets range of text part which includes specified index which is marked with specified ID.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.13.40248

Syntax

C#
public bool GetMarkedRange(
	int index,
	int markingID,
	out int begin,
	out int end
)
Visual Basic
Public Function GetMarkedRange ( 
	index As Integer,
	markingID As Integer,
	<OutAttribute> ByRef begin As Integer,
	<OutAttribute> ByRef end As Integer
) As Boolean

Parameters

index
Type: System..::..Int32
The text range including a character at this index will be retrieved.
markingID
Type: System..::..Int32
The text range marked with this ID will be retrieved.
begin
Type: System..::..Int32%
When this method returns, contains the beginning index of the text range.
end
Type: System..::..Int32%
When this method returns, contains the ending index of the text range.

Return Value

Type: Boolean
Whether a text range marked with specified marking ID was retrieved or not.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeException Parameter index is out of valid range. - OR - Parameter markingID is out of valid range.
System..::..ArgumentException Parameter markingID is not registered in Marking class.

See Also