Spread 8.0 Documentation
SpvGetPageBorderWidth, SpvSetPageBorderWidth Functions
Support Options
DLL Reference > DLL Functions > SpvGetPageBorderWidth, SpvSetPageBorderWidth Functions

Glossary Item Box

SpvGetPageBorderWidth, SpvSetPageBorderWidth Functions


See Also    ActiveX

Applies To

fpSpreadPreview DLL control

Description

Set or return the border width of the displayed pages.

Syntax

C

int SpvGetPageBorderWidth(HWND hWnd, short FAR *lpValue);

int SpvSetPageBorderWidth(HWND hWnd, short value);

C++

short TPreview::GetPageBorderWidth(void);

int TPreview::SetPageBorderWidth(short value);

Parameters

The SpvGetPageBorderWidth function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
lpValue Pointer to variable that receives the border width

The SpvSetPageBorderWidth function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpreadPreview control
value Border width of the displayed pages

Remarks

The default border width is 2 pixels.

Call the SpvSetPageBorderColor and SpvSetPageBorderWidth functions to change the color and width of the border around the displayed pages. Call the SpvSetPageShadowColor and SpvSetPageShadowWidth functions to change the color and width of the shadow behind the displayed pages.

Return Value

SpvGetPageBorderWidth: For C users, 1 if the function completes successfully; 0 otherwise. For C++ users, the setting for the function.
SpvSetPageBorderWidth: 1 if the function completes successfully; 0 otherwise.

See Also

SpvGetPageBorderColor, SpvSetPageBorderColor, SpvSetPageShadowColor, SpvSetPageShadowWidth functions

ActiveX Correspondence

PageBorderWidth property

Copyright © GrapeCity, inc. All rights reserved.