 | 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
Syntaxpublic 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
)
Public Shared Sub GetMediaSize (
gxNetShared As CGXNETCore,
name As String,
ByRef full_page_width As Double,
ByRef full_page_height As Double,
ByRef plot_width As Double,
ByRef plot_height As Double
)
Public Shared Sub GetMediaSize (
gxNetShared As CGXNETCore,
name As String,
ByRef full_page_width As Double,
ByRef full_page_height As Double,
ByRef plot_width As Double,
ByRef plot_height As Double
)
public:
static void GetMediaSize(
CGXNETCore^ gxNetShared,
String^ name,
double% full_page_width,
double% full_page_height,
double% plot_width,
double% plot_height
)
public:
static void GetMediaSize(
CGXNETCore^ gxNetShared,
String^ name,
double% full_page_width,
double% full_page_height,
double% plot_width,
double% plot_height
)
static member GetMediaSize :
gxNetShared : CGXNETCore *
name : string *
full_page_width : float byref *
full_page_height : float byref *
plot_width : float byref *
plot_height : float byref -> unit
static member GetMediaSize :
gxNetShared : CGXNETCore *
name : string *
full_page_width : float byref *
full_page_height : float byref *
plot_width : float byref *
plot_height : float byref -> unit
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