CellRendererText.maxWidthChars

Get maxWidthChars property.

  1. int maxWidthChars [@property getter]
    class CellRendererText
    @property
    int
    maxWidthChars
    ()
  2. int maxWidthChars [@property setter]

Return Value

Type: int

The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.

For cell renderers that ellipsize or wrap text; this property controls the maximum reported width of the cell. The cell should not receive any greater allocation unless it is set to expand in its gtk.cell_layout.CellLayout and all of the cell's siblings have received their natural width.