75 references to SelectionBorderGlyphType
System.Windows.Forms.Design (75)
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
154
Rectangle newRect = DesignerUtils.GetBoundsForNoResizeSelectionType(_alternativeBounds,
SelectionBorderGlyphType
.Top);
System\Windows\Forms\Design\Behavior\LockedBorderGlyph.cs (2)
18
internal LockedBorderGlyph(Rectangle controlBounds,
SelectionBorderGlyphType
type)
27
private void InitializeGlyph(Rectangle controlBounds,
SelectionBorderGlyphType
type)
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (4)
14
private
SelectionBorderGlyphType
_type;
16
internal
SelectionBorderGlyphType
Type
26
internal MiniLockedBorderGlyph(Rectangle controlBounds,
SelectionBorderGlyphType
type, Behavior behavior)
35
private void InitializeGlyph(Rectangle controlBounds,
SelectionBorderGlyphType
type)
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (8)
16
internal NoResizeSelectionBorderGlyph(Rectangle controlBounds, SelectionRules rules,
SelectionBorderGlyphType
type, Behavior? behavior)
25
private void InitializeGlyph(Rectangle controlBounds, SelectionRules selRules,
SelectionBorderGlyphType
type)
43
case
SelectionBorderGlyphType
.Top:
44
goto case
SelectionBorderGlyphType
.Bottom;
45
case
SelectionBorderGlyphType
.Bottom:
50
case
SelectionBorderGlyphType
.Left:
51
goto case
SelectionBorderGlyphType
.Right;
52
case
SelectionBorderGlyphType
.Right:
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (6)
16
internal SelectionBorderGlyph(Rectangle controlBounds, SelectionRules rules,
SelectionBorderGlyphType
type, Behavior? behavior)
25
private void InitializeGlyph(Rectangle controlBounds, SelectionRules selRules,
SelectionBorderGlyphType
type)
37
case
SelectionBorderGlyphType
.Top:
48
case
SelectionBorderGlyphType
.Bottom:
59
case
SelectionBorderGlyphType
.Left:
70
case
SelectionBorderGlyphType
.Right:
System\Windows\Forms\Design\ComponentTray.cs (4)
1465
gr.FillRectangle(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect,
SelectionBorderGlyphType
.Top));
1466
gr.FillRectangle(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect,
SelectionBorderGlyphType
.Bottom));
1467
gr.FillRectangle(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect,
SelectionBorderGlyphType
.Left));
1468
gr.FillRectangle(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect,
SelectionBorderGlyphType
.Right));
System\Windows\Forms\Design\ControlDesigner.cs (12)
766
glyphs.Add(new LockedBorderGlyph(translatedBounds,
SelectionBorderGlyphType
.Top));
767
glyphs.Add(new LockedBorderGlyph(translatedBounds,
SelectionBorderGlyphType
.Bottom));
768
glyphs.Add(new LockedBorderGlyph(translatedBounds,
SelectionBorderGlyphType
.Left));
769
glyphs.Add(new LockedBorderGlyph(translatedBounds,
SelectionBorderGlyphType
.Right));
777
glyphs.Add(new NoResizeSelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Top, MoveBehavior));
778
glyphs.Add(new NoResizeSelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Bottom, MoveBehavior));
779
glyphs.Add(new NoResizeSelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Left, MoveBehavior));
780
glyphs.Add(new NoResizeSelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Right, MoveBehavior));
835
glyphs.Add(new SelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Top, StandardBehavior));
836
glyphs.Add(new SelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Bottom, StandardBehavior));
837
glyphs.Add(new SelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Left, StandardBehavior));
838
glyphs.Add(new SelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Right, StandardBehavior));
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (4)
56
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Top, standardBehavior));
57
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Bottom, standardBehavior));
58
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Left, standardBehavior));
59
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Right, standardBehavior));
System\Windows\Forms\Design\DesignerUtils.cs (14)
459
public static Rectangle GetBoundsForSelectionType(Rectangle originalBounds,
SelectionBorderGlyphType
type, int borderSize) =>
462
SelectionBorderGlyphType
.Top => new Rectangle(originalBounds.Left - borderSize, originalBounds.Top - borderSize, originalBounds.Width + 2 * borderSize, borderSize),
463
SelectionBorderGlyphType
.Bottom => new Rectangle(originalBounds.Left - borderSize, originalBounds.Bottom, originalBounds.Width + 2 * borderSize, borderSize),
464
SelectionBorderGlyphType
.Left => new Rectangle(originalBounds.Left - borderSize, originalBounds.Top - borderSize, borderSize, originalBounds.Height + 2 * borderSize),
465
SelectionBorderGlyphType
.Right => new Rectangle(originalBounds.Right, originalBounds.Top - borderSize, borderSize, originalBounds.Height + 2 * borderSize),
466
SelectionBorderGlyphType
.Body => originalBounds,
475
private static Rectangle GetBoundsForSelectionType(Rectangle originalBounds,
SelectionBorderGlyphType
type, int bordersize, int offset)
482
case
SelectionBorderGlyphType
.Top:
486
case
SelectionBorderGlyphType
.Bottom:
490
case
SelectionBorderGlyphType
.Left:
494
case
SelectionBorderGlyphType
.Right:
498
case
SelectionBorderGlyphType
.Body:
511
public static Rectangle GetBoundsForSelectionType(Rectangle originalBounds,
SelectionBorderGlyphType
type)
516
public static Rectangle GetBoundsForNoResizeSelectionType(Rectangle originalBounds,
SelectionBorderGlyphType
type)
System\Windows\Forms\Design\DocumentDesigner.cs (12)
533
glyphs.Add(new LockedBorderGlyph(translatedBounds,
SelectionBorderGlyphType
.Top));
534
glyphs.Add(new LockedBorderGlyph(translatedBounds,
SelectionBorderGlyphType
.Bottom));
535
glyphs.Add(new LockedBorderGlyph(translatedBounds,
SelectionBorderGlyphType
.Left));
536
glyphs.Add(new LockedBorderGlyph(translatedBounds,
SelectionBorderGlyphType
.Right));
547
glyphs.Add(new NoResizeSelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Top, null));
548
glyphs.Add(new NoResizeSelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Bottom, null));
549
glyphs.Add(new NoResizeSelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Left, null));
550
glyphs.Add(new NoResizeSelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Right, null));
558
glyphs.Add(new SelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Top, null));
559
glyphs.Add(new SelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Bottom, StandardBehavior));
560
glyphs.Add(new SelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Left, null));
561
glyphs.Add(new SelectionBorderGlyph(translatedBounds, rules,
SelectionBorderGlyphType
.Right, StandardBehavior));
System\Windows\Forms\Design\ToolStripItemDesigner.cs (8)
589
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Top, standardBehavior));
590
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Bottom, standardBehavior));
591
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Left, standardBehavior));
592
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Right, standardBehavior));
597
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Top, standardBehavior));
598
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Bottom, standardBehavior));
599
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Left, standardBehavior));
600
glyphs.Add(new MiniLockedBorderGlyph(r,
SelectionBorderGlyphType
.Right, standardBehavior));