blob: d9af1e601fb60b6a779f632768daf0d8409f1112 [file] [log] [blame]
{ "type": "class",
"qname": "org.apache.royale.textLayout.elements.TextRange",
"baseClassname": ""
,
"description": "A read only class that describes a range of contiguous text. Such a range occurs when you select a section of text. The range consists of the anchor point of the selection, <code>anchorPosition</code>, and the point that is to be modified by actions, <code>activePosition</code>. As block selections are modified and extended <code>anchorPosition</code> remains fixed and <code>activePosition</code> is modified. The anchor position may be placed in the text before or after the active position.",
"tags": [
{ "tagName": "see",
"values": ["org.apache.royale.textLayout.elements.TextFlow TextFlow", "org.apache.royale.textLayout.edit.SelectionState SelectionState"]},
{ "tagName": "playerversion",
"values": ["Flash 10", "AIR 1.5"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"members": [
{ "type": "method",
"qname": "org.apache.royale.textLayout.elements.TextRange",
"namespace": "",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Constructor - creates a new TextRange instance. A TextRange can be (-1,-1), indicating no range, or a pair of values from 0 to <code>TextFlow.textLength</code>.",
"tags": [
{ "tagName": "see",
"values": ["FlowElement#textLength"]},
{ "tagName": "param",
"values": ["root the TextFlow associated with the selection.", "anchorIndex the index position of the anchor in the selection. The first position in the text is position 0.", "activeIndex the index position of the active location in the selection. The first position in the text is position 0."]},
{ "tagName": "playerversion",
"values": ["Flash 10", "AIR 1.5"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "",
"params": [{ "name": "root", "type": "org.apache.royale.textLayout.elements.ITextFlow"},
{ "name": "anchorIndex", "type": "int"},
{ "name": "activeIndex", "type": "int"}]}
,
{ "type": "method",
"qname": "updateRange",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Update the range with new anchor or active position values.",
"tags": [
{ "tagName": "param",
"values": ["newAnchorPosition the anchor index of the selection.", "newActivePosition the active index of the selection."]},
{ "tagName": "playerversion",
"values": ["Flash 10", "AIR 1.5"]},
{ "tagName": "return",
"values": ["true if selection is changed."]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "Boolean",
"params": [{ "name": "newAnchorPosition", "type": "int"},
{ "name": "newActivePosition", "type": "int"}]}
,
{ "type": "accessor",
"access": "read-write",
"return": "org.apache.royale.textLayout.elements.ITextFlow",
"qname": "textFlow",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Returns the TextFlow associated with the selection.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10", "AIR 1.5"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-write",
"return": "int",
"qname": "anchorPosition",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Anchor position of the selection, as an absolute position in the TextFlow.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10", "AIR 1.5"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-write",
"return": "int",
"qname": "activePosition",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Active position of the selection, as an absolute position in the TextFlow.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10", "AIR 1.5"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-write",
"return": "int",
"qname": "absoluteStart",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Start of the selection, as an absolute position in the TextFlow.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10", "AIR 1.5"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-write",
"return": "int",
"qname": "absoluteEnd",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "End of the selection, as an absolute position in the TextFlow.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10", "AIR 1.5"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]}]
}