====== ISelection ====== Scriptable object, inherited from [[:scripting:api:range:overview|IRange]] ===== Description ===== Selection object (extension of [[:scripting:api:range:overview|IRange]]) ===== Properties ===== ^Property^ Description^ |[[scripting:api:selection:block|Block]]| Block/Column mode| |[[scripting:api:range:bottom|bottom]]| Bottom| |[[scripting:api:range:end|End]]| Range end position| |[[scripting:api:range:height|Height]]| Returns difference between Bottom and Top| |[[scripting:api:range:is-empty|IsEmpty]]| Check if range is empty (Height and Width equals 0)| |[[scripting:api:range:is-normalized|IsNormalized]]| Check if range is normalized (TopLeft point less or equal to BottomRight)| |[[scripting:api:range:left|left]]| Left| |[[scripting:api:range:right|right]]| Right| |[[scripting:api:range:start|Start]]| Range start position| |[[scripting:api:range:top|top]]| Top| |[[scripting:api:range:width|Width]]| Return difference between Right and Left| ===== Methods ===== ^Method^ Description^ |[[scripting:api:range:equals|equals]]| Compare, if objects are equal| |[[scripting:api:range:inflate|Inflate]]| Inflate range| |[[scripting:api:range:is-inside|IsInside]]| Checks if position is inside of range (greater or equal start and less than end position)| |[[scripting:api:range:is-intersects|IsIntersects]]| Checks if position intersects range (greater or equal start and less or equal than end position)| |[[scripting:api:range:is-range-inside|IsRangeInside]]| Checks if other range is inside of range (greater or equal start and less than end position)| |[[scripting:api:range:is-range-intersects|IsRangeIntersects]]| Checks if other range intersects range (greater or equal start and less or equal than end position)| |[[scripting:api:range:normalize|Normalize]]| Normalizes the range| ===== See Also ===== [[:scripting:api:text-view:selection|ITextView::Selection]] #API ~~NOTOC~~