Spread 8.0 Documentation
GrayAreaMarginH Property
Support Options
ActiveX Reference > ActiveX Properties > GrayAreaMarginH Property

Glossary Item Box

GrayAreaMarginH Property


See Also    DLL    Example

Applies To

fpSpreadPreview control

Description

Sets or returns the horizontal space between the displayed page and the edge of the control.

Syntax

C++

long CSpreadPreview::GetGrayAreaMarginH( );
void CSpreadPreview::SetGrayAreaMarginH(long value);

Visual Basic

[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

Customizing the Gray Area

GrayAreaColor, GrayAreaMarginType, GrayAreaMarginV, PageGutterH, PageGutterV properties

DLL Correspondence

SpvGetGrayAreaMarginH, SpvSetGrayAreaMarginH functions

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.