This page contains reference documentation for the GetProjection function. This function returns the projection of the active worksheet.
int GetProjection()
Examples are as follows:
if( a_oView.GetProjection() == 0 )
{
if ( a_oView.Fog == 0 )
{
a_oView.FarClip = 100000;
a_oView.Fog = 1;
a_oView.FogStart = 1;
a_oView.FogEnd = 100000;
a_oView.FogColor.SetRGB( 230, 220, 255 );
a_oView.TopColor.SetRGB( 230, 220, 255 );
a_oView.MiddleColor.SetRGB( 230, 220, 255 );
a_oView.BottomColor.SetRGB( 230, 220, 255 );
}
if ( a_oView.Fog == 1 )
{
a_oView.Fog = 0;
}
}
For sample code: