Пример #1
0
        private void CreateRowMap()
        {
            RowMap.Clear();
            int row = 0;

            _contentWidth = 0;
            foreach (TreeNodeAdv node in VisibleNodes)
            {
                node.Row = row;
                RowMap.Add(node);
                if (!UseColumns)
                {
                    _contentWidth = Math.Max(_contentWidth, GetNodeWidth(node));
                }
                row++;
            }
            if (UseColumns)
            {
                _contentWidth = 0;
                foreach (TreeColumn col in _columns)
                {
                    if (col.IsVisible)
                    {
                        _contentWidth += col.Width;
                    }
                }
            }
        }
 public void Reset()
 {
     RowMap.Clear();
 }
 public void Clear()
 {
     CurrentRow = null;
     RowMap.Clear();
 }
Пример #4
0
	void clearRows()
	{
	//	std::for_each( m_rows.begin(), m_rows.end(), RowDeleter() );
		m_rows.Clear();
	}