API reference › Rendering & Viewer
rasGetSelectionMode
Select the entire current page (rasSelectAll), and
void __stdcall rasSelectAll(IPGC CachePtr, TSelectObjType ObjTypes);
TSelectObjType __stdcall rasGetSelectionMode(IPGC CachePtr);
void __stdcall rasSetSelectionMode(IPGC CachePtr, TSelectObjType Value);
procedure rasSelectAll(CachePtr: IPGC; ObjTypes: TSelectObjType); stdcall;
function rasGetSelectionMode(CachePtr: IPGC): TSelectObjType; stdcall;
procedure rasSetSelectionMode(CachePtr: IPGC; Value: TSelectObjType); stdcall;
Purpose. Select the entire current page (rasSelectAll), and get/set the cache's selection-mode flag (SelectionMode) that other functions in this cluster (e.g. rasSelectAnnotOrField) also write as a side effect to record what kind of thing was last selected.
Description. rasSelectAll sets C.SelectionMode := Ord(ObjTypes) and calls SelectWholePage(C) (the same whole-page marquee helper rasKeyStroke's Ctrl+A uses, Mouse and Keyboard Input) — it selects the whole current page as one rectangle, not individual objects filtered by ObjTypes; ObjTypes only ends up stored as the mode, not used to scope which objects get selected. rasSetSelectionMode/ rasGetSelectionMode are plain accessors on the same field.
Parameters.
| Parameter | Description |
|---|---|
CachePtr | Target page cache. |
ObjTypes / Value | Stored as SelectionMode; rasSelectAll's ObjTypes does not scope the selection to that object type — the whole page is always selected as one rect. |
Return value. rasGetSelectionMode: the stored mode (TSelectObjType(0) if CachePtr doesn't resolve).
C# (P/Invoke)
public static extern uint rasGetSelectionMode(IntPtr CachePtr);
Rasterizer/Rendering
rasGetSelectionMode
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.