public void GetTabs(out TabAlign[] alignments, out int[] locations) { int sz = Size; IntPtr align_ptr, loc_ptr; alignments = new TabAlign [sz]; locations = new int [sz]; int[] tmp = new int [sz]; if (sz == 0) return; pango_tab_array_get_tabs (Handle, out align_ptr, out loc_ptr); Marshal.Copy (loc_ptr, locations, 0, sz); Marshal.Copy (align_ptr, tmp, 0, sz); for (int i = 0; i < sz; i++) alignments [i] = (TabAlign) tmp [i]; g_free (align_ptr); g_free (loc_ptr); }
public void GetTabs(out TabAlign[] alignments, out int[] locations) { int sz = Size; IntPtr align_ptr, loc_ptr; alignments = new TabAlign [sz]; locations = new int [sz]; int[] tmp = new int [sz]; if (sz == 0) { return; } pango_tab_array_get_tabs(Handle, out align_ptr, out loc_ptr); Marshal.Copy(loc_ptr, locations, 0, sz); Marshal.Copy(align_ptr, tmp, 0, sz); for (int i = 0; i < sz; i++) { alignments [i] = (TabAlign)tmp [i]; } GLib.Marshaller.Free(align_ptr); GLib.Marshaller.Free(loc_ptr); }
public void SetTab(int index, TabAlign align = TabAlign.Left, double width = 1) { }
/// <summary> /// The alignment of the Tabs (defaults to 'Left'). Other option includes 'Right'. Note that tab scrolling is only supported for TabAlign='Left'. Note that when 'Right', the Tabs will be rendered in reverse order. /// </summary> public virtual TBuilder TabAlign(TabAlign tabAlign) { this.ToComponent().TabAlign = tabAlign; return(this as TBuilder); }
public Tab(TabAlign pAlign, int pPosition) { _align = pAlign; _position = pPosition; }
/// <summary> /// Configures the Align and position of the tabs ('\t'). Position is pretty much the size of EACH tab or each '\t'. /// </summary> /// <param name = "tabAlign">Right or Left according to the Enum @TabAlign</param> /// <param name = "position">Kind of size of EACH tab or each '\t'</param> /// <returns>The fluent actual paragraph</returns> public Paragraph AddTab(TabAlign tabAlign, int position) { _tabs.Add(new Tab(tabAlign, position)); return(this); }