GrayAreaMarginH Property
Applies To
fpSpreadPreview control
Description
Sets or returns the horizontal space between the displayed page and the edge of the control.
Syntax
long CSpreadPreview::GetGrayAreaMarginH( );
void CSpreadPreview::SetGrayAreaMarginH(long value);
[form.]fpSpreadPreview.GrayAreaMarginH[ = value%]
Remarks
The default value of the GrayAreaMarginH property is 720 twips.
Use the GrayAreaMarginV property to set the vertical space between the displayed page and the edge of the control. Use the PageGutterH and PageGutterV properties to set the horizontal and vertical spaces between multiple pages.
The settings of the GrayAreaMarginH and GrayAreaMarginV properties are interpreted by the control according to the setting of the GrayAreaMarginType property. By default, the settings for the margins are scaled to keep the page view readable within the preview area. However, you can change the setting of the GrayAreaMarginType property to 1 (Actual) to have the control use the exact settings of the GrayAreaMarginH and GrayAreaMarginV properties regardless if the page is zoomed in or out.
Data Type
Integer
See Also
GrayAreaColor, GrayAreaMarginType, GrayAreaMarginV, PageGutterH, PageGutterV properties
DLL Correspondence
SpvGetGrayAreaMarginH, SpvSetGrayAreaMarginH functions