private void GetPen(Dictionary<string, string> rDict) { if (rDict == null) throw new ArgumentNullException(nameof(rDict)); rDict.Add("pen_pattern", MiApi.mitab_c_get_pen_pattern(this.Handle).ToString()); rDict.Add("pen_width", MiApi.mitab_c_get_pen_width(this.Handle).ToString()); rDict.Add("pen_color", MiApi.mitab_c_get_pen_color(this.Handle).ToString()); }