2.2.4.27.19 MatrixLayer::SetDataDisplay

Description

Sets the display format of the data in the matrix

Syntax

BOOL SetDataDisplay( int nDisplay, uint numOfDigits, uint numOfDecimals )

Parameters

nDisplay
[input] display type: DD_SHOW or DD_DOCK
numOfDigits
[input] number of digits allowed in each element
numOfDecimals
[input] number of decimals allowed in each element

Return

TRUE for success; otherwise FALSE

Examples

EX1

//Sets the display format of the data in the matrix. 
void MatrixLayer_SetDataDisplay_Ex1()
{
    MatrixLayer mm = Project.ActiveLayer();
    if(!mm)
        return;
    
    int numOfDigits = 4;
    int numOfDecimals = 2;
    if( mm.SetDataDisplay(DD_SHOW, numOfDigits, numOfDecimals) )
        printf("Success to set data display format! ");
    else
        printf("Fail tot set data display format!");
}

Remark

See Also

Header to Include

origin.h