2.2.4.28.51 MatrixObject::SetUnits

Description

set units label of the matrix object.

Syntax

BOOL SetUnits(LPCSTR lpcszUnits)

Parameters

lpcszUnits
[input] the string of units label

Return

Returns TRUE if successful, else FALSE.

Examples

EX1

void MatrixObject_SetUnits_ex1()
{
	MatrixLayer ml = Project.ActiveLayer();
	if ( ml )
	{
		MatrixObject mo = ml.MatrixObjects(0);		
		mo.SetUnits("This is units label");		
	}
}

Remark

See Also

MatrixObject::GetUnits, MatrixObject::SetLongName, MatrixObject::SetComments, MatrixObject::SetLabel, MatrixObject::SetExtendedLabel, MatrixObject::SetParameters

Header to Include

origin.h