1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726
|
//
// System.Windows.Forms.Design.ParentControlDesigner
//
// Authors:
// Ivan N. Zlatev (contact i-nZ.net)
//
// (C) 2006 Ivan N. Zlatev
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Design;
using System.Collections;
using System.Windows.Forms.Design.Behavior;
namespace System.Windows.Forms.Design
{
public class ParentControlDesigner : ControlDesigner
{
public ParentControlDesigner ()
{
}
#region Initialization
// Settings paths taken from the example at:
// http://msdn2.microsoft.com/en-us/library/system.componentmodel.design.idesigneroptionservice.aspx
//
public override void Initialize (IComponent component)
{
base.Initialize (component);
this.Control.AllowDrop = true;
// Initialize the default values of the Design-Time properties.
//
_defaultDrawGrid = true;
_defaultSnapToGrid = true;
_defaultGridSize = new Size (8, 8);
// If the parent Control of the designed one has a ParentDesigner then inherit the values
// from it's designer.
//
if (this.Control.Parent != null) {
ParentControlDesigner parentDesigner = GetParentControlDesignerOf (Control.Parent);
if (parentDesigner != null) {
_defaultDrawGrid = (bool) GetValue (parentDesigner.Component, "DrawGrid");
_defaultSnapToGrid = (bool) GetValue (parentDesigner.Component, "SnapToGrid");
_defaultGridSize = (Size) GetValue (parentDesigner.Component, "GridSize");
}
}
else {
// Else retrieve them through the IDesignerOptionService (if available)
//
IDesignerOptionService options = GetService (typeof (IDesignerOptionService)) as
IDesignerOptionService;
if (options != null) {
object value = null;
value = options.GetOptionValue (@"WindowsFormsDesigner\General", "DrawGrid");
if (value is bool)
_defaultDrawGrid = (bool) value;
value = options.GetOptionValue (@"WindowsFormsDesigner\General", "SnapToGrid");
if (value is bool)
_defaultSnapToGrid = (bool) value;
value = options.GetOptionValue (@"WindowsFormsDesigner\General", "GridSize");
if (value is Size)
_defaultGridSize = (Size) value;
}
}
IComponentChangeService componentChangeSvc = GetService (typeof (IComponentChangeService)) as IComponentChangeService;
if (componentChangeSvc != null) {
componentChangeSvc.ComponentRemoving += new ComponentEventHandler (OnComponentRemoving);
componentChangeSvc.ComponentRemoved += new ComponentEventHandler (OnComponentRemoved);
}
// At the end set whatever we've managed to get
//
_drawGrid = _defaultDrawGrid;
_snapToGrid = _defaultSnapToGrid;
_gridSize = _defaultGridSize;
}
protected override void Dispose (bool disposing)
{
if (disposing) {
EnableDragDrop (false);
OnMouseDragEnd (true);
}
base.Dispose (disposing);
}
#endregion
#region IToolboxService Related
// This is the code that is executed when you drop a tool from the Toolbox in the designer.
//
protected static void InvokeCreateTool (ParentControlDesigner toInvoke, ToolboxItem tool)
{
if (toInvoke != null)
toInvoke.CreateTool (tool);
}
protected void CreateTool (ToolboxItem tool)
{
CreateToolCore (tool, DefaultControlLocation.X, DefaultControlLocation.Y, 0, 0, true, false);
}
protected void CreateTool (ToolboxItem tool, Point location)
{
CreateToolCore (tool, location.X, location.Y, 0, 0, true, false);
}
protected void CreateTool (ToolboxItem tool, Rectangle bounds)
{
CreateToolCore (tool, bounds.X, bounds.Y, bounds.Width, bounds.Width, true, true);
}
// Creates a component from a ToolboxItem, sets its location and size if available and snaps it's
// location to the grid.
//
protected virtual IComponent[] CreateToolCore (ToolboxItem tool, int x, int y, int width, int height,
bool hasLocation, bool hasSize)
{
if (tool == null)
throw new ArgumentNullException ("tool");
IDesignerHost host = GetService (typeof (IDesignerHost)) as IDesignerHost;
DesignerTransaction transaction = host.CreateTransaction ("Create components in tool '" + tool.DisplayName + "'");
IComponent[] components = tool.CreateComponents (host);
foreach (IComponent component in components)
{
ControlDesigner controlDesigner = host.GetDesigner (component) as ControlDesigner;
if (controlDesigner == null) { // not a Control, but e.g. a plain Component
continue;
} else if (!this.CanParent (controlDesigner)) {
host.DestroyComponent (component);
continue;
}
Control control = component as Control;
if (control != null) {
this.Control.SuspendLayout ();
// set parent instead of controls.Add so that it gets serialized for Undo/Redo
TypeDescriptor.GetProperties (control)["Parent"].SetValue (control, this.Control);
this.Control.SuspendLayout ();
if (hasLocation)
base.SetValue (component, "Location", this.SnapPointToGrid (new Point (x, y)));
else
base.SetValue (component, "Location", this.SnapPointToGrid (this.DefaultControlLocation));
if (hasSize)
base.SetValue (component, "Size", new Size (width, height));
this.Control.Refresh ();
}
}
ISelectionService selectionServ = this.GetService (typeof (ISelectionService)) as ISelectionService;
if (selectionServ != null)
selectionServ.SetSelectedComponents (components, SelectionTypes.Replace);
transaction.Commit ();
return components;
}
#endregion
#region Drag and Drop
// If the control is not already parented return true
//
public virtual bool CanParent (Control control)
{
if (control != null)
return !control.Contains (this.Control);
return false;
}
public virtual bool CanParent (ControlDesigner controlDesigner)
{
return CanParent (controlDesigner.Control);
}
protected override void OnDragDrop (DragEventArgs de)
{
IUISelectionService selectionServ = this.GetService (typeof (IUISelectionService)) as IUISelectionService;
if (selectionServ != null) {
// once this is fired the parent control (parentcontroldesigner) will start getting dragover events.
//
Point location = this.SnapPointToGrid (this.Control.PointToClient (new Point (de.X, de.Y)));
selectionServ.DragDrop (false, this.Control, location.X, location.Y);
}
}
protected override void OnDragEnter (DragEventArgs de)
{
this.Control.Refresh ();
}
protected override void OnDragLeave (EventArgs e)
{
this.Control.Refresh ();
}
protected override void OnDragOver (DragEventArgs de)
{
IUISelectionService selectionServ = this.GetService (typeof (IUISelectionService)) as IUISelectionService;
if (selectionServ != null) {
// once ControlDesigner.MouseDragBegin is called this will start getting dragover events.
//
Point location = this.SnapPointToGrid (this.Control.PointToClient (new Point (de.X, de.Y)));
selectionServ.DragOver (this.Control, location.X, location.Y);
}
de.Effect = DragDropEffects.Move;
}
#endregion
#region Properties
// The default location where a control is placed, when added to the designer
//
protected virtual Point DefaultControlLocation {
get { return new Point (0, 0); }
}
protected override bool EnableDragRect {
get { return true; }
}
#endregion
#region ComponentChange
private void OnComponentRemoving (object sender, ComponentEventArgs args)
{
IComponentChangeService componentChangeSvc = GetService (typeof (IComponentChangeService)) as IComponentChangeService;
Control control = args.Component as Control;
if (control != null && control.Parent == this.Control && componentChangeSvc != null)
componentChangeSvc.OnComponentChanging (args.Component, TypeDescriptor.GetProperties (args.Component)["Parent"]);
}
private void OnComponentRemoved (object sender, ComponentEventArgs args)
{
IComponentChangeService componentChangeSvc = GetService (typeof (IComponentChangeService)) as IComponentChangeService;
Control control = args.Component as Control;
if (control != null && control.Parent == this.Control && componentChangeSvc != null) {
control.Parent = null;
componentChangeSvc.OnComponentChanged (args.Component,
TypeDescriptor.GetProperties (args.Component)["Parent"],
this.Control, null);
}
}
#endregion
#region Design-Time Properties
private bool _defaultDrawGrid;
private bool _defaultSnapToGrid;
private Size _defaultGridSize;
private bool _drawGrid;
private bool _snapToGrid;
private Size _gridSize;
//This method adds the following design-time browsable properties:
// "DrawGrid", "SnapToGrid", and "GridSize".
//
protected override void PreFilterProperties (IDictionary properties)
{
base.PreFilterProperties (properties);
properties["DrawGrid"] = TypeDescriptor.CreateProperty (typeof (ParentControlDesigner),
"DrawGrid",
typeof (bool),
new Attribute[] {
BrowsableAttribute.Yes,
DesignOnlyAttribute.Yes,
new DescriptionAttribute (
"Indicates whether or not to draw the positioning grid."),
CategoryAttribute.Design
});
properties["SnapToGrid"] = TypeDescriptor.CreateProperty (typeof (ParentControlDesigner),
"SnapToGrid",
typeof (bool),
new Attribute[] {
BrowsableAttribute.Yes,
DesignOnlyAttribute.Yes,
new DescriptionAttribute (
"Determines if controls should snap to the positioning grid."),
CategoryAttribute.Design
});
properties["GridSize"] = TypeDescriptor.CreateProperty (typeof (ParentControlDesigner),
"GridSize",
typeof (Size),
new Attribute[] {
BrowsableAttribute.Yes,
DesignOnlyAttribute.Yes,
new DescriptionAttribute (
"Determines the size of the positioning grid."),
CategoryAttribute.Design
});
}
// Informs all children controls' ParentControlDesigners that the grid properties
// have changed and passes them
//
private void PopulateGridProperties ()
{
// Control.Invalidate (true) will redraw the control and it's children
// this will cause a WM_PAINT message to be send and the ControlDesigenr will raise
// the OnPaintAdornments, where the grid drawing takes place.
//
// Note that this should be called *after* the grid properties have changed :-)
//
this.Control.Invalidate (false);
if (this.Control != null) {
ParentControlDesigner designer = null;
foreach (Control control in this.Control.Controls) {
designer = this.GetParentControlDesignerOf (control);
if (designer != null)
designer.OnParentGridPropertiesChanged (this);
}
}
}
// Called by the parent ParentControlDesigner when it is populating the grid-related
// design-time properties changes
//
private void OnParentGridPropertiesChanged (ParentControlDesigner parentDesigner)
{
SetValue (this.Component, "DrawGrid", (bool) GetValue (parentDesigner.Component, "DrawGrid"));
SetValue (this.Component, "SnapToGrid", (bool) GetValue (parentDesigner.Component, "SnapToGrid"));
SetValue (this.Component, "GridSize", (Size) GetValue (parentDesigner.Component, "GridSize"));
// Set also the default values to be those, because we should
// match the parent ParentControlDesigner values.
// called recursivly, so I will rather go for slower, but no stack-overflowable code
//
_defaultDrawGrid = (bool) GetValue (parentDesigner.Component, "DrawGrid");
_defaultSnapToGrid = (bool) GetValue (parentDesigner.Component, "SnapToGrid");
_defaultGridSize = (Size) GetValue (parentDesigner.Component, "GridSize");
this.PopulateGridProperties ();
}
// Retrieves the ParentControlDesigner of the specified control if available,
// else returns null.
//
private ParentControlDesigner GetParentControlDesignerOf (Control control)
{
if (control != null) {
IDesignerHost designerHost = GetService (typeof (IDesignerHost)) as IDesignerHost;
if (designerHost != null) {
ParentControlDesigner designer = null;
designer = designerHost.GetDesigner (this.Control.Parent) as ParentControlDesigner;
if (designer != null)
return designer;
}
}
return null;
}
protected virtual bool DrawGrid {
get { return _drawGrid; }
set {
_drawGrid = value;
if (value == false)
SetValue (this.Component, "SnapToGrid", false);
PopulateGridProperties ();
}
}
private bool SnapToGrid {
get { return _snapToGrid; }
set {
_snapToGrid = value;
PopulateGridProperties ();
}
}
protected Size GridSize {
get { return _gridSize; }
set {
_gridSize = value;
PopulateGridProperties ();
}
}
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconshouldpersistresetmethods.asp
//
// The ShouldSerializerPROPERTYNAME determines whether a property has changed from
// the default value and should get serialized.
//
// The ResetPROPERTYNAME resets the property to it's default value (used when
// one right clicks on a property in the property grid and clicks on "Reset".
//
private bool ShouldSerializeDrawGrid ()
{
return DrawGrid != _defaultDrawGrid;
}
private void ResetDrawGrid ()
{
this.DrawGrid = _defaultDrawGrid;
}
private bool ShouldSerializeSnapToGrid ()
{
return _drawGrid != _defaultDrawGrid;
}
private void ResetSnapToGrid ()
{
this.SnapToGrid = _defaultSnapToGrid;
}
private bool ShouldSerializeGridSize ()
{
return GridSize != _defaultGridSize;
}
private void ResetGridSize ()
{
this.GridSize = _defaultGridSize;
}
#endregion
#region Design-Time Mouse Drag and Drop
protected override void OnMouseDragBegin (int x, int y)
{
// do not call base here because the behaviour is specific for the ControlDesgner (does IUISelectionService.DragBegin)
//
IUISelectionService selectionServ = this.GetService (typeof (IUISelectionService)) as IUISelectionService;
if (selectionServ != null) {
// once ControlDesigner.MouseDragBegin is fired this will start getting dragover events.
//
Point location = new Point (x, y);
IDesignerHost host = GetService (typeof (IDesignerHost)) as IDesignerHost;
if (base.MouseButtonDown == MouseButtons.Middle && host != null && host.RootComponent != this.Control) {
location = this.Control.Parent.PointToClient (this.Control.PointToScreen (new Point (x, y)));
// I have to do this, because I get DragOver events fired for the control I am actually dragging
//
this.Control.AllowDrop = false;
selectionServ.DragBegin ();
}
else {
selectionServ.MouseDragBegin (this.Control, location.X, location.Y);
}
}
}
protected override void OnMouseDragMove (int x, int y)
{
IUISelectionService selectionServ = this.GetService (typeof (IUISelectionService)) as IUISelectionService;
if (selectionServ != null) {
Point location = new Point (x, y);
if (!selectionServ.SelectionInProgress)
location = this.SnapPointToGrid (new Point (x, y));
selectionServ.MouseDragMove (location.X, location.Y);
}
}
protected override void OnMouseDragEnd (bool cancel)
{
IUISelectionService selectionServ = this.GetService (typeof (IUISelectionService)) as IUISelectionService;
if (selectionServ != null) {
// If there is a Toolbox component seleted then create it instead of finishing the selection
IToolboxService toolBoxService = this.GetService (typeof (IToolboxService)) as IToolboxService;
if (!cancel && toolBoxService != null && toolBoxService.GetSelectedToolboxItem () != null) {
if (selectionServ.SelectionInProgress) {
bool hasSize = selectionServ.SelectionBounds.Width > 0 &&
selectionServ.SelectionBounds.Height > 0;
CreateToolCore (toolBoxService.GetSelectedToolboxItem (),
selectionServ.SelectionBounds.X,
selectionServ.SelectionBounds.Y,
selectionServ.SelectionBounds.Width,
selectionServ.SelectionBounds.Height,
true, hasSize);
toolBoxService.SelectedToolboxItemUsed ();
cancel = true;
} else if (!selectionServ.SelectionInProgress &&
!selectionServ.ResizeInProgress && !selectionServ.DragDropInProgress){
CreateTool (toolBoxService.GetSelectedToolboxItem (), _mouseDownPoint);
toolBoxService.SelectedToolboxItemUsed ();
cancel = true;
}
}
if (selectionServ.SelectionInProgress || selectionServ.ResizeInProgress)
selectionServ.MouseDragEnd (cancel);
}
}
protected override void OnDragComplete (DragEventArgs de)
{
base.OnDragComplete (de);
}
Point _mouseDownPoint = Point.Empty;
internal override void OnMouseDown (int x, int y)
{
_mouseDownPoint.X = x;
_mouseDownPoint.Y = y;
base.OnMouseDown (x, y);
}
internal override void OnMouseUp ()
{
base.OnMouseUp ();
if (!this.Control.AllowDrop) // check MouseDragBegin for the reason of having this
this.Control.AllowDrop = true;
_mouseDownPoint = Point.Empty;
}
internal override void OnMouseMove (int x, int y)
{
IUISelectionService uiSelection = this.GetService (typeof (IUISelectionService)) as IUISelectionService;
if (uiSelection != null)
uiSelection.SetCursor (x, y);
base.OnMouseMove (x, y);
}
// Align the point to the grid
//
private Point SnapPointToGrid (Point location)
{
Rectangle gridSurface = this.Control.Bounds;
Size gridSize = (Size)GetValue (this.Component, "GridSize");
if ((bool)GetValue (this.Component, "SnapToGrid")) {
int x = location.X + (gridSize.Width - (location.X % gridSize.Width));
if (x > gridSurface.Width)
x = gridSurface.Width - gridSize.Width;
location.X = x;
int y = location.Y + (gridSize.Height - (location.Y % gridSize.Height));
if (y > gridSurface.Height)
y = gridSurface.Height - gridSize.Height;
location.Y = y;
}
return location;
}
#endregion
#region WndProc and Misc Message Handlers
protected override void OnSetCursor ()
{
if (this.Control != null) {
IToolboxService tbService = GetService (typeof (IToolboxService)) as IToolboxService;
if (tbService != null)
tbService.SetCursor ();
else
base.OnSetCursor ();
}
}
// Draws the design-time grid if DrawGrid == true
//
protected override void OnPaintAdornments (PaintEventArgs pe)
{
base.OnPaintAdornments (pe);
bool drawGrid;
Size gridSize;
// in case WM_PAINT is received before the IDesignerFilter is invoked to add
// those properties.
try {
drawGrid = (bool)GetValue (this.Component, "DrawGrid");
} catch {
drawGrid = this.DrawGrid;
}
try {
gridSize = (Size)GetValue (this.Component, "GridSize");
} catch {
gridSize = this.GridSize;
}
if (drawGrid) {
GraphicsState state = pe.Graphics.Save ();
pe.Graphics.TranslateTransform (this.Control.ClientRectangle.X,
this.Control.ClientRectangle.Y);
ControlPaint.DrawGrid (pe.Graphics, this.Control.ClientRectangle, gridSize, this.Control.BackColor);
pe.Graphics.Restore (state);
}
IUISelectionService selection = this.GetService (typeof (IUISelectionService)) as IUISelectionService;
if (selection != null)
selection.PaintAdornments (this.Control, pe.Graphics);
}
#endregion
protected Control GetControl (object component)
{
IComponent comp = component as IComponent;
if (comp != null && comp.Site != null) {
IDesignerHost host = comp.Site.GetService (typeof (IDesignerHost)) as IDesignerHost;
if (host != null) {
ControlDesigner designer = host.GetDesigner (comp) as ControlDesigner;
if (designer != null)
return designer.Control;
}
}
return null;
}
#region NET_2_0 Stubs
[MonoTODO]
protected virtual bool AllowControlLasso {
get { return false; }
}
[MonoTODO]
protected virtual bool AllowGenericDragBox {
get { return false; }
}
[MonoTODO]
protected internal virtual bool AllowSetChildIndexOnDrop {
get { return false; }
}
[MonoTODO]
public override IList SnapLines {
get { return new object [0]; }
}
[MonoTODO]
protected ToolboxItem MouseDragTool {
get { return null; }
}
[MonoTODO]
public override void InitializeNewComponent (IDictionary defaultValues)
{
base.InitializeNewComponent (defaultValues);
}
[MonoTODO]
protected void AddPaddingSnapLines (ref ArrayList snapLines)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected virtual Control GetParentForComponent (IComponent component)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected override ControlBodyGlyph GetControlGlyph (GlyphSelectionType selectionType)
{
return base.GetControlGlyph (selectionType);
}
[MonoTODO]
public override GlyphCollection GetGlyphs (GlyphSelectionType selectionType)
{
return base.GetGlyphs (selectionType);
}
[MonoTODO]
protected Rectangle GetUpdatedRect (Rectangle originalRect, Rectangle dragRect, bool updateSize)
{
throw new NotImplementedException ();
}
#endregion
}
}
|