Method Fig_codeToString
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
Fig_codeToString(int)
Returns the corresponding vdFigure's name of the code passed.The supported values are:
vdLine,vdPolyline,vdText,vdRect,vdCircle,vdEllipse,vdArc,vdImage,vdInsert,vd3DFace,vdPolyface,
vdAttrib,vdAttribDef,vdInfinityLine,vdPoint,vdPointCloud,vdViewport,vdPolyhatch,vdDimension,vdMText,vdMultiline,
vdGroundSurface,vdLeader,vdArcAlignedText.
public string Fig_codeToString(int code)
Parameters
codeintThe code of the vdFigure.
Returns
- string
The string of the vdFigure's name.
Examples
function _vdmousedown(e) {
document.getElementById("display").focus();
var entity = e.target.GetEntityFromPoint(e.xPix, e.yPix);
if (entity != null && entity._t != undefined) {
info2.innerHTML = "Item Clicked Type : " + e.target.Fig_codeToString(entity._t) + ", Handle : " + entity.HandleId.toString();
}
}