/// <summary> /// Get schema location for text /// </summary> /// <param name="proxy">E3.series ITextInterface COM proxy object</param> /// <returns>Schema location struct or null if not placed</returns> public static SchemaLocationStruct?GetSchemaLocationStruct(this E3TextProxy proxy) { object x = null; object y = null; object grid = null; int sheetId = proxy.GetSchemaLocation(ref x, ref y, ref grid); if (sheetId == 0) { return(null); } return(new SchemaLocationStruct((double)x, (double)y, grid as string, sheetId)); }
/// <summary> /// Check for text is placed on the sheet /// </summary> /// <param name="proxy">E3.series ITextInterface COM proxy object</param> /// <returns></returns> public static bool IsPlaced(this E3TextProxy proxy) => proxy.GetSchemaLocationStruct().HasValue;