コード例 #1
0
		public ReorderColumnState(TreeViewAdv tree, TreeColumn column, Point initialMouseLocation)
			: base(tree, column)
		{
			_location = new Point(initialMouseLocation.X + Tree.OffsetX, 0);
			_dragOffset = tree.GetColumnX(column) - initialMouseLocation.X;
			_ghostImage = column.CreateGhostImage(new Rectangle(0, 0, column.Width, tree.ColumnHeaderHeight), tree.Font);
		}
コード例 #2
0
 public ReorderColumnState(TreeViewAdv tree, TreeColumn column, Point initialMouseLocation)
     : base(tree, column)
 {
     _location   = new Point(initialMouseLocation.X + Tree.OffsetX, 0);
     _dragOffset = tree.GetColumnX(column) - initialMouseLocation.X;
     _ghostImage = column.CreateGhostImage(new Rectangle(0, 0, column.Width, tree.ColumnHeaderHeight), tree.Font);
 }
コード例 #3
0
 public AutoRowHeightLayout(TreeViewAdv treeView, int rowHeight)
 {
     _rowCache                = new List <Rectangle>();
     _treeView                = treeView;
     PreferredRowHeight       = rowHeight;
     _measureContext          = new DrawContext();
     _measureContext.Graphics = Graphics.FromImage(new Bitmap(1, 1));
 }
コード例 #4
0
 public AutoRowHeightLayout(TreeViewAdv treeView, int rowHeight)
 {
     _rowCache = new List<Rectangle>();
     _treeView = treeView;
     PreferredRowHeight = rowHeight;
     _measureContext = new DrawContext();
     _measureContext.Graphics = Graphics.FromImage(new Bitmap(1, 1));
 }
コード例 #5
0
 internal TreeNodeAdv(TreeViewAdv tree, object tag)
 {
     _row      = -1;
     _tree     = tree;
     _nodes    = new NodeCollection(this);
     _children = new ReadOnlyCollection <TreeNodeAdv>(_nodes);
     _tag      = tag;
 }
コード例 #6
0
 public override bool MouseMove(MouseEventArgs args)
 {
     if (TreeViewAdv.Dist(_location, args.Location) > TreeViewAdv.ItemDragSensivity &&
         Tree.AllowColumnReorder)
     {
         Tree.Input = new ReorderColumnState(Tree, Column, args.Location);
         Tree.UpdateView();
     }
     return(true);
 }
コード例 #7
0
		public ClickColumnState(TreeViewAdv tree, TreeColumn column, Point location)
			: base(tree, column)
		{
			_location = location;
		}
コード例 #8
0
 public IncrementalSearch(TreeViewAdv tree)
 {
     _tree = tree;
 }
コード例 #9
0
 public ColumnState(TreeViewAdv tree, TreeColumn column)
     : base(tree)
 {
     _column = column;
 }
コード例 #10
0
 public ModSelectionColumnsInfo(TreeViewAdv treeViewAdv)
 {
     FromTreeViewAdv(treeViewAdv);
 }
コード例 #11
0
 public InputState(TreeViewAdv tree)
 {
     _tree = tree;
 }
コード例 #12
0
 public InputWithShift(TreeViewAdv tree) : base(tree)
 {
 }
コード例 #13
0
 public ResizeColumnState(TreeViewAdv tree, TreeColumn column, Point p)
     : base(tree, column)
 {
     _initLocation = p;
     _initWidth = column.Width;
 }
コード例 #14
0
 public InputWithControl(TreeViewAdv tree) : base(tree)
 {
 }
コード例 #15
0
 public ResizeColumnState(TreeViewAdv tree, TreeColumn column, Point p)
     : base(tree, column)
 {
     _initLocation = p;
     _initWidth    = column.Width;
 }
コード例 #16
0
 public void ToTreeViewAdv(TreeViewAdv treeViewAdv)
 {
     TreeViewAdvColumnHelper.ColumnsToTreeViewAdv(treeViewAdv, Columns);
 }
コード例 #17
0
 public void FromTreeViewAdv(TreeViewAdv treeViewAdv)
 {
     Columns = TreeViewAdvColumnHelper.GetColumnData(treeViewAdv);
 }
コード例 #18
0
		public ColumnState(TreeViewAdv tree, TreeColumn column)
			: base(tree)
		{
			_column = column;
		}
コード例 #19
0
 public InputWithControl(TreeViewAdv tree) : base(tree)
 {
 }
コード例 #20
0
		public FixedRowHeightLayout(TreeViewAdv treeView, int rowHeight)
		{
			_treeView = treeView;
			PreferredRowHeight = rowHeight;
		}
コード例 #21
0
		public InputState(TreeViewAdv tree)
		{
			_tree = tree;
		}
コード例 #22
0
 public NormalInputState(TreeViewAdv tree) : base(tree)
 {
 }
コード例 #23
0
 public ClickColumnState(TreeViewAdv tree, TreeColumn column, Point location)
     : base(tree, column)
 {
     _location = location;
 }
コード例 #24
0
 public NormalInputState(TreeViewAdv tree) : base(tree)
 {
 }
コード例 #25
0
 public InputWithShift(TreeViewAdv tree) : base(tree)
 {
 }
コード例 #26
0
 public IncrementalSearch(TreeViewAdv tree)
 {
     _tree = tree;
 }
コード例 #27
0
 public TreeColumnCollection(TreeViewAdv treeView)
 {
     _treeView = treeView;
 }
コード例 #28
0
 public FixedRowHeightLayout(TreeViewAdv treeView, int rowHeight)
 {
     _treeView          = treeView;
     PreferredRowHeight = rowHeight;
 }