Skip to content

Commit

Permalink
Fix some spelling issue Issue #11984 (#12154)
Browse files Browse the repository at this point in the history
Related to #11984

---------

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>
paul1956 and Tanya-Solyanik authored Sep 18, 2024
1 parent 0c96068 commit 99d42a9
Showing 47 changed files with 145 additions and 139 deletions.
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ Namespace Microsoft.VisualBasic.Devices
''' This property returns the Mouse object containing information about
''' the physical mouse installed to the machine.
''' </summary>
''' <value>An instance of the <see cref="Computer.Mouse"/> class.</value>
''' <value>An instance of the <see cref="Computer.Mouse"/> class.</value>
Public ReadOnly Property Mouse() As Mouse
Get
If s_mouse IsNot Nothing Then Return s_mouse
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ Namespace Microsoft.VisualBasic.Devices
Partial Public Class ComputerInfo

''' <summary>
''' Debugger proxy for the <see cref="ComputerInfo"/> class. The problem
''' Debugger proxy for the <see cref="ComputerInfo"/> class. The problem
''' is that OSFullName can time out the debugger so we offer a view
''' that doesn't have that field.
''' </summary>
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ Namespace Microsoft.VisualBasic.Devices
''' Gets the platform OS name.
''' </summary>
''' <value>
''' A string containing a <see cref="PlatformID"/> like "Win32NT", "Win32S",
''' A string containing a <see cref="PlatformID"/> like "Win32NT", "Win32S",
''' "Win32Windows". See <see cref="PlatformID"/> enum.
''' </value>
''' <exception cref="ExecutionEngineException">
Original file line number Diff line number Diff line change
@@ -184,7 +184,7 @@ Namespace Microsoft.VisualBasic.MyServices
End Sub

''' <summary>
''' Saves the passed in <see cref="Image"/> to the clipboard.
''' Saves the passed in <see cref="Image"/> to the clipboard.
''' </summary>
''' <param name="image">The <see cref="Image"/> to be saved.</param>
Public Sub SetImage(image As Image)
Original file line number Diff line number Diff line change
@@ -959,7 +959,7 @@ private void OnMenuTabOrder(object sender, EventArgs e)
}

/// <summary>
/// Called when the zorder->send to back menu item is selected.
/// Called when the Z-order->send to back menu item is selected.
/// </summary>
private void OnMenuZOrderSelection(object sender, EventArgs e)
{
@@ -1086,7 +1086,7 @@ private void OnMenuZOrderSelection(object sender, EventArgs e)
{
if (cmdID == StandardCommands.BringToFront)
{
// we do this backwards to maintain zorder
// we do this backwards to maintain Z-order
Control otherControl = selectedComponents[len - i - 1] as Control;

otherControl?.BringToFront();
Original file line number Diff line number Diff line change
@@ -390,7 +390,7 @@ protected override void OnLayout(LayoutEventArgs e)
Rectangle client = DisplayRectangle;

// Loop through all of the overlays and size them. Also make sure that they are still on top of the
// zorder, because a handle recreate could have changed this.
// Z-order, because a handle recreate could have changed this.
foreach (Control c in _overlayList)
{
c.Bounds = client;
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ internal static string GetMaskInputRejectedErrorMessage(MaskInputRejectedEventAr
}

/// <summary>
/// Obsolete ComponentDesigner method which sets component default properties. Overriden to avoid setting
/// Obsolete ComponentDesigner method which sets component default properties. Overridden to avoid setting
/// the Mask improperly.
/// </summary>
[Obsolete("This method has been deprecated. Use InitializeNewComponent instead. https://go.microsoft.com/fwlink/?linkid=14202")]
Original file line number Diff line number Diff line change
@@ -102,13 +102,13 @@ public override void InitializeNewComponent(IDictionary defaultValues)

TabControl tc = (TabControl)Component;
if (tc is not null)
{ // always Select the First Tab on Initialising the component...
{ // always Select the First Tab on Initializing the component...
tc.SelectedIndex = 0;
}
}

// If the tabcontrol already contains the control we are dropping then don't allow the drop.
// I.e. we don't want to allow local drag-drop for tabcontrols.
// If the TabControl already contains the control we are dropping then don't allow the drop.
// I.e. we don't want to allow local drag-drop for TabControls.
public override bool CanParent(Control control) => (control is TabPage && !Control.Contains(control));

private void CheckVerbStatus()
@@ -517,7 +517,7 @@ protected override void OnDragEnter(DragEventArgs de)
}
else
{
// We must be dragging something off the toolbox, so forward the drag to the right tabpage.
// We must be dragging something off the toolbox, so forward the drag to the right TabPage.
_forwardOnDrag = true;
}

@@ -632,7 +632,7 @@ protected override void WndProc(ref Message m)
case PInvoke.WM_HSCROLL:
case PInvoke.WM_VSCROLL:
// We do this so that we can update the areas covered by glyphs correctly. VSWhidbey# 187405.
// We just invalidate the area corresponding to the ClientRectangle in the adornerwindow.
// We just invalidate the area corresponding to the ClientRectangle in the AdornerWindow.
BehaviorService.Invalidate(BehaviorService.ControlRectInAdornerWindow(Control));
base.WndProc(ref m);
break;
Original file line number Diff line number Diff line change
@@ -1988,7 +1988,7 @@ private void OnItemAdded(object sender, ToolStripItemEventArgs e)
}

/// <summary>
/// Overriden so that the ToolStrip honors dragging only through container selector glyph.
/// Overridden so that the ToolStrip honors dragging only through container selector glyph.
/// </summary>
protected override void OnMouseDragMove(int x, int y)
{
Original file line number Diff line number Diff line change
@@ -468,7 +468,7 @@ public override bool OnMouseDown(Glyph g, MouseButtons button, Point mouseLoc)
}

/// <summary>
/// Overriden to paint the border on mouse enter.....
/// Overridden to paint the border on mouse enter.....
/// </summary>
public override bool OnMouseEnter(Glyph g)
{
@@ -494,7 +494,7 @@ public override bool OnMouseEnter(Glyph g)
}

/// <summary>
/// overriden to "clear" the boundary-paint when the mouse leave the item
/// Overridden to "clear" the boundary-paint when the mouse leave the item
/// </summary>
public override bool OnMouseLeave(Glyph g)
{
Original file line number Diff line number Diff line change
@@ -667,7 +667,7 @@ public override void Initialize(IComponent component)
}

/// <summary>
/// Overriden to always Initialise the ToolStripItem with Text property.
/// Overridden to always initialize the ToolStripItem with Text property.
/// </summary>
public override void InitializeNewComponent(IDictionary defaultValues)
{
Original file line number Diff line number Diff line change
@@ -2677,7 +2677,7 @@ private VARIANT AsChildIdVariant(AccessibleObject? obj)
/// </summary>
private static IDispatch* GetIDispatch(AccessibleObject? obj)
{
// we are always wrapping system iaccessible..
// We are always wrapping SystemIAccessible.
if (obj is not null && obj._isSystemWrapper && obj.SystemIAccessible is { } accessible)
{
// We're just a simple system wrapper, return the pointer.
@@ -3292,7 +3292,7 @@ HRESULT IScrollItemProvider.Interface.ScrollIntoView()
return HRESULT.S_OK;
}

internal virtual void ScrollIntoView() => Debug.Fail($"{nameof(ScrollIntoView)}() is not overriden");
internal virtual void ScrollIntoView() => Debug.Fail($"{nameof(ScrollIntoView)}() is not overridden");

private ComScope<IOleWindow> TryGetOleWindow(out HRESULT result)
{
Original file line number Diff line number Diff line change
@@ -877,7 +877,7 @@ public static event EventHandler? LeaveThreadModal
}

/// <summary>
/// Occurs when an untrapped thread exception is thrown.
/// Occurs when an un-trapped thread exception is thrown.
/// </summary>
public static event ThreadExceptionEventHandler? ThreadException
{
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ public enum AutoCompleteSource
None = 0x00000080,

/// <summary>
/// The items of the combobox represent the source.
/// The items of the ComboBox represent the source.
/// </summary>
ListItems = 0x00000100
}
20 changes: 10 additions & 10 deletions src/System.Windows.Forms/src/System/Windows/Forms/Control.cs
Original file line number Diff line number Diff line change
@@ -1400,7 +1400,7 @@ protected virtual CreateParams CreateParams
cp.Style |= (int)WINDOW_STYLE.WS_VISIBLE;
}

// Unlike Visible, Windows doesn't correctly inherit disabledness from its parent -- an enabled child
// Unlike Visible, Windows doesn't correctly inherit disabled state from its parent -- an enabled child
// of a disabled parent will look enabled but not get mouse events
if (!Enabled)
{
@@ -2450,7 +2450,7 @@ public bool IsAccessible
// If the control on which GetContainerControl( ) is called is a ContainerControl, then we don't return the parent
// but return the same control. This is Everett behavior so we cannot change this since this would be a breaking change.
// Hence we have a new internal property IsContainerControl which returns false for all Everett control, but
// this property is overidden in SplitContainer to return true so that we skip the SplitContainer
// this property is overridden in SplitContainer to return true so that we skip the SplitContainer
// and the correct Parent ContainerControl is returned by GetContainerControl().
internal virtual bool IsContainerControl => false;

@@ -2689,7 +2689,7 @@ public static Point MousePosition

/// <summary>
/// Name of this control. The designer will set this to the same
/// as the programatic Id "(name)" of the control. The name can be
/// as the programmatic Id "(name)" of the control. The name can be
/// used as a key into the ControlCollection.
/// </summary>
[Browsable(false)]
@@ -3342,7 +3342,7 @@ internal Control TopMostParent
}
}

// This auto upgraded v1 client to per-process doublebuffering logic
// This auto upgraded v1 client to per-process double buffering logic
private static BufferedGraphicsContext BufferContext => BufferedGraphicsManager.Current;

/// <summary>
@@ -4400,8 +4400,8 @@ public event EventHandler? ParentChanged
/// exist yet, this will follow up the control's parent chain until it finds a
/// control or form that does have a window handle. If no appropriate handle
/// can be found, BeginInvoke will throw an exception. Exceptions within the
/// delegate method are considered untrapped and will be sent to the
/// application's untrapped exception handler.
/// delegate method are considered un-trapped and will be sent to the
/// application's un-trapped exception handler.
///
/// There are five functions on a control that are safe to call from any
/// thread: GetInvokeRequired, Invoke, BeginInvoke, EndInvoke and CreateGraphics.
@@ -4432,7 +4432,7 @@ internal void BeginUpdateInternal()
}

/// <summary>
/// Brings this control to the front of the zorder.
/// Brings this control to the front of the Z-order.
/// </summary>
public void BringToFront()
{
@@ -4452,7 +4452,7 @@ public void BringToFront()

/// <summary>
/// Specifies whether this control can process the mnemonic or not. A condition to process a mnemonic is that
/// all controls in the parent chain can do it too, but since the semantics for this function can be overriden,
/// all controls in the parent chain can do it too, but since the semantics for this function can be overridden,
/// we need to call the method on the parent 'recursively' (not exactly since it is not necessarily the same method).
/// </summary>
internal virtual bool CanProcessMnemonic()
@@ -11185,7 +11185,7 @@ private void UpdateReflectParent()
}

/// <summary>
/// Updates this control in it's parent's zorder.
/// Updates this control in it's parent's Z-order.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Advanced)]
protected void UpdateZOrder()
@@ -11194,7 +11194,7 @@ protected void UpdateZOrder()
}

/// <summary>
/// Syncs the ZOrder of child control to the index we want it to be.
/// Syncs the Z-order of child control to the index we want it to be.
/// </summary>
private void UpdateChildZOrder(Control control)
{
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ internal class FlatComboAdapter

public FlatComboAdapter(ComboBox comboBox, bool shouldRedrawAsSmallButton)
{
// adapter is re-created when combobox is resized, see IsValid method, thus we don't need to handle DPI changed explicitly
// adapter is re-created when ComboBox is resized, see IsValid method, thus we don't need to handle DPI changed explicitly
s_offsetPixels = comboBox.LogicalToDeviceUnits(OFFSET_2PIXELS);

_clientRect = comboBox.ClientRectangle;
@@ -101,7 +101,7 @@ public virtual void DrawPopUpCombo(ComboBox comboBox, Graphics g)
new Rectangle(_dropDownRect.X, _outerBorder.Y, _outerBorder.Right - _dropDownRect.X, _outerBorder.Height));
}

// Draw a border around the whole comboBox.
// Draw a border around the whole ComboBox.
g.DrawRectangle(borderPen, _outerBorder);
}
}
@@ -123,7 +123,7 @@ public virtual void DrawFlatCombo(ComboBox comboBox, Graphics g)
// Draw the drop down
DrawFlatComboDropDown(comboBox, g, _dropDownRect);

// When we are disabled there is one line of color that seems to eek through if backcolor is set
// When we are disabled there is one line of color that seems to eek through if BackColor is set
// so let's erase it.
if (!LayoutUtils.IsZeroWidthOrHeight(_whiteFillRect))
{
Original file line number Diff line number Diff line change
@@ -194,7 +194,7 @@ internal void AddRangeInternal(IList items)

foreach (object item in items)
{
// adding items one-by-one for performance (especially for sorted combobox)
// adding items one-by-one for performance (especially for sorted ComboBox)
// we can not rely on ArrayList.Sort since its worst case complexity is n*n
// AddInternal is based on BinarySearch and ensures n*log(n) complexity
AddInternal(item);
Loading

0 comments on commit 99d42a9

Please sign in to comment.