public void Dispose(bool bool_1) { if ((!bool_1 ? false : !this.bool_0)) { MiApi.mitab_c_destroy_feature(this.Handle); this.bool_0 = true; } }
protected internal Fields(Layer layer_0) : base(MiApi.mitab_c_get_field_count(layer_0.Handle)) { this.field_0 = new Field[base.Count]; for (int i = 0; i < base.Count; i++) { this.field_0[i] = this.CreateField(layer_0, i); } }
protected internal Feature(Layer layer_0, int int_0) { this.Id = int_0; this.Layer = layer_0; this.Handle = MiApi.mitab_c_read_feature(layer_0.Handle, int_0); this.Type = MiApi.mitab_c_get_type(this.Handle); this.Parts = this.CreateParts(this); }
public Layer(string string_0) { this.Handle = MiApi.mitab_c_open(string_0); if (this.Handle == IntPtr.Zero) { throw new FileNotFoundException(string.Concat("File ", string_0, " not found"), string_0); } this.Fields = this.CreateFields(); this.Features = this.CreateFeatures(); this.FileName = string_0; }
public virtual Vertex this[int int_1] { get { Vertex vertex; if (int_1 < base.Count) { vertex = this.CreateVertex(MiApi.mitab_c_get_vertex_x(this.Part.Feature.Handle, this.Part.Index, int_1), MiApi.mitab_c_get_vertex_y(this.Part.Feature.Handle, this.Part.Index, int_1)); } else { vertex = null; } return(vertex); } }
public Feature GetNext() { Feature feature = new Feature(this.Layer, MiApi.mitab_c_next_feature_id(this.Layer.Handle, this.Id)); return(feature); }
public Feature GetFirst() { Feature item = this[MiApi.mitab_c_next_feature_id(this.layer_0.Handle, -1)]; return(item); }
public Features(Layer layer_1) : base(MiApi.mitab_c_get_feature_count(layer_1.Handle)) { this.layer_0 = layer_1; }
public void Dispose() { MiApi.mitab_c_close(this.Handle); }
protected internal Vertices(Part part_0) : base(MiApi.mitab_c_get_vertex_count(part_0.Feature.Handle, part_0.Index)) { this.Part = part_0; }
public static string mitab_c_get_mif_coordsys(IntPtr intptr_0) { return(Marshal.PtrToStringAnsi(MiApi.mitab_c_get_mif_coordsys_1(intptr_0))); }
public static string mitab_c_get_font(IntPtr intptr_0) { return(Marshal.PtrToStringAnsi(MiApi.mitab_c_get_font_1(intptr_0))); }
public static string mitab_c_get_field_name(IntPtr intptr_0, int int_0) { return(Marshal.PtrToStringAnsi(MiApi.mitab_c_get_field_name_1(intptr_0, int_0))); }
public static string mitab_c_getlasterrormsg() { return(Marshal.PtrToStringAnsi(MiApi.mitab_c_getlasterrormsg_1())); }
protected internal Parts(Feature feature_0) : base(MiApi.mitab_c_get_parts(feature_0.Handle)) { this.Feature = feature_0; }