GetIntelliSenseInfoResult GetIntelliSenseInfo(OdId tObject, GetIntelliSenseArg tArg)
tObject. Moniker of the unit, with which code the work is executed.
tArg. Operation execution parameters.
The GetIntelliSenseInfo operation gets the list of types and types members available to use in the current code point.
The operation enables getting the list that will be further displayed on using the IntelliSense technology during unit code development.To execute the operation, specify unit moniker in the tObject field and in the cursor layout coordinates in the code in the tArg.cursor field. If unit was changed, but it it was not saved yet, its code can be sent in the tArg.meta field. The operation result will be the collection of code elements that can be used in the specified code coordinate.
See below the example of getting the list of type members available for use in the specified code coordinate.The unit moniker and code coordinate are sent in the query. The list of type members with parameters available for use in this code place is received in the response.The example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier example.
{
"GetIntelliSenseInfo" :
{
"tObject" :
{
"id" : "S1!M!172002"
},
"tArg" :
{
"cursor" :
{
"col" : "30",
"row" : "26"
}
}
}
}
{
"GetIntelliSenseInfoResult" :
{
"items" :
{
"it" :
[
{
"type" : "Sub",
"name" : "Create",
"access" : "Public",
"blocks" : "",
"helpString" : ""
},
{
"type" : "Sub",
"name" : "CreateWithParams",
"access" : "Public",
"blocks" :
{
"it" :
[
{
"type" : "Var",
"name" : "Size",
"typeName" : "Integer",
"access" : "Public"
},
{
"type" : "Var",
"name" : "DefaultValue",
"typeName" : "Double",
"Value" : "0",
"access" : "Public"
}
]
},
"helpString" : ""
}
]
}
}
}
public static GetIntelliSenseInfoResult GetIntelliSenseInfo(MbId mb, string moduleId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetIntelliSenseInfo()
{
tArg = new GetIntelliSenseArg()
{
cursor = new CodePoint()
{
row = 26,
col = 30
}
},
//Unit moniker
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, moduleId).k }
};
//Get information
var result = somClient.GetIntelliSenseInfo(tGet);
return result;
}
See also: