Inheritance: ColumnCell, ISizeRequestCell, ITextCell, ITooltipCell
Beispiel #1
0
        public Column(ColumnCell headerCell, string title, ColumnCell cell, double width, bool visible, int minWidth, int maxWidth)
            : base(cell.Property, title, width, visible)
        {
            min_width   = minWidth;
            max_width   = maxWidth;
            header_cell = headerCell ?? new ColumnHeaderCellText(HeaderCellDataHandler);

            ColumnCellText header_text = header_cell as ColumnCellText;
            ColumnCellText cell_text   = cell as ColumnCellText;

            if (header_text != null && cell_text != null)
            {
                header_text.Alignment = cell_text.Alignment;
            }

            PackStart(cell);
        }
Beispiel #2
0
 protected virtual Gdk.Size OnMeasureChild()
 {
     return(ViewLayout != null
         ? new Gdk.Size((int)ViewLayout.ChildSize.Width, (int)ViewLayout.ChildSize.Height)
         : new Gdk.Size(0, ColumnCellText.ComputeRowHeight(this)));
 }