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

Glossary Item Box

GrayAreaMarginType Property


See Also    DLL    Example

Applies To

fpSpreadPreview control

Description

Sets or returns whether the control uses the actual gray area margin settings or scales the settings to optimize the page view.

Syntax

C++

long CSpreadPreview::GetGrayAreaMarginType( );
void CSpreadPreview::SetGrayAreaMarginType(long value);

Visual Basic

[form.]fpSpreadPreview.GrayAreaMarginType[ = setting%]

Remarks

The following settings are available:

Setting Description Constant
0 - Scaled (Default) Scales the gray area margins to work with the selected page view GrayAreaMarginTypeScaled
1 - Actual Displays the gray area margins with the actual specified settings GrayAreaMarginTypeActual

The GrayAreaMarginType property specifies whether the control uses the actual gray area margin settings (specified by the GrayAreaMarginH and GrayAreaMarginV properties), or modifies the settings to optimize the preview area and page views. For example, the user might choose settings that make the page very small in the chosen view. If the GrayAreaMarginType property is set to 0 (Scaled), the control scales the settings to maintain the chosen view at the optimum size.

Specify the page view using the PageViewType and related Page properties.

Data Type

Integer (Enumerated)

See Also

Customizing the Gray Area

GrayAreaColor, GrayAreaMarginH, GrayAreaMarginV, PageViewType properties

DLL Correspondence

SpvGetGrayAreaMarginType, SpvSetGrayAreaMarginType functions

Copyright © GrapeCity, inc. All rights reserved.