API referenceRendering & Viewer

rasClearSelection

Clear the current marquee/object selection without

C
void __stdcall rasClearSelection(IPGC CachePtr);
Delphi
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/ScrollYrasClearSelection is the narrower, selection-only version of that reset.

Parameters.

ParameterDescription
CachePtrTarget page cache.

Return value. None.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void rasClearSelection(IntPtr CachePtr);
Area
Rendering & Viewer
Category

Rasterizer/Rendering

Exported names

rasClearSelection

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.