コード例 #1
0
        /// <summary>
        /// Run the ObjectInfo mapbasic command in Mapinfo, and returns a string containing the result.
        /// </summary>
        /// <param name="variable">The variable used by the ObjectInfo call.</param>
        /// <param name="attribute">The attribute specifying which information to return.</param>
        /// <returns>A string containing the retured result from calling the ObjectInfo command in Mapinfo.</returns>
        public static string ObjectInfo(IVariable variable, ObjectInfoEnum attribute)
        {
            IMapinfoWrapper wrapper        = ServiceLocator.GetInstance <IMapinfoWrapper>();
            string          expression     = variable.GetExpression();
            string          returnedstring = wrapper.Evaluate("ObjectInfo({0},{1})".FormatWith(expression, (int)attribute));

            return(returnedstring);
        }
コード例 #2
0
 /// <summary>
 /// Runs the ObjectInfo mapbasic command in Mapinfo, and returns a string containing the result.
 /// </summary>
 /// <param name="attribute">The attribute specifying which information to return.</param>
 /// <returns>A string containing the returned result from calling the ObjectInfo command in Mapinfo.</returns>
 public object ObjectInfo(ObjectInfoEnum attribute)
 {
     throw new NotImplementedException();
     //return this.misession.ObjectInfo(this.Variable, attribute);
 }
コード例 #3
0
 /// <summary>
 /// Runs the ObjectInfo mapbasic command in Mapinfo, and returns a string containing the result.
 /// </summary>
 /// <param name="attribute">The attribute specifying which information to return.</param>
 /// <returns>A string containing the returned result from calling the ObjectInfo command in Mapinfo.</returns>
 public string ObjectInfo(ObjectInfoEnum attribute)
 {
     return(MapbasicObject.ObjectInfo(this.Variable, attribute));
 }