API reference › Rendering & Viewer
rasClearSelection
Clear the current marquee/object selection without
void __stdcall rasClearSelection(IPGC CachePtr);
procedure rasClearSelection(CachePtr: IPGC); stdcall;
Purpose. Clear the current marquee/object selection without resetting any other view state (scroll, current page).
Description. A plain, real two-field reset: C.HasSel := False and C.SelTextBuf := ''. Contrast rasCloseFile (Rendering, Painting, and the Tile Pipeline), which clears the same two fields plus resets CurrPage/ScrollX/ScrollY — rasClearSelection is the narrower, selection-only version of that reset.
Parameters.
| Parameter | Description |
|---|---|
CachePtr | Target page cache. |
Return value. None.
C# (P/Invoke)
public static extern void rasClearSelection(IntPtr CachePtr);
Rasterizer/Rendering
rasClearSelection
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.