Click or drag to resize

CMAPTEMPLATEGetMediaSize Method

Get full width, full height, plot width and plot height in cm for a specific media or template name

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public static void GetMediaSize(
	CGXNETCore gxNetShared,
	string name,
	ref double full_page_width,
	ref double full_page_height,
	ref double plot_width,
	ref double plot_height
)

public static void GetMediaSize(
	CGXNETCore gxNetShared,
	string name,
	ref double full_page_width,
	ref double full_page_height,
	ref double plot_width,
	ref double plot_height
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
name
Type: SystemString
Page size name
full_page_width
Type: SystemDouble
Full width of page in cm (`rDUMMY` if name not found)
full_page_height
Type: SystemDouble
Full height of page in cm (`rDUMMY` if name not found)
plot_width
Type: SystemDouble
Plot width of page in cm (`rDUMMY` if name not found)
plot_height
Type: SystemDouble
Plot height of page in cm (`rDUMMY` if name not found)
Remarks
The user 'media.csv' file is searched first. If the name is not found then the 'maptmpl.csv' file is searched, and if a template name is matched the sizes of the associated media name are returned. If a template is specified, the orientation is taken into account for the media.
See Also