Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic

C#
Visual Basic

Azuki 1.7 Documentation
Document..::..GetMarkedRange Method
Document Class See Also Send Feedback

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

Exception | Condition
--- | ---
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

Document Class
Document..::..Document Members
Sgry.Azuki Namespace
Marking class