Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit be235a9

Browse files
author
Savas Ziplies
committed
Added: Default values for GetScrollInfo
1 parent b93cf7b commit be235a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Visual Studio Project Template C#/PluginInfrastructure/IScintillaGateway.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public interface IScintillaGateway
2727
/// <summary>
2828
/// Get the scroll information for the current Scintilla window.
2929
/// </summary>
30-
/// <param name="mask">Argumetns for the scroll information such as tracking</param>
30+
/// <param name="mask">Arguments for the scroll information such as tracking</param>
3131
/// <param name="scrollBar">Which scroll bar information are you looking for</param>
3232
/// <returns>A ScrollInfo struct with information of the current scroll state</returns>
33-
ScrollInfo GetScrollInfo(ScrollInfoMask mask, ScrollInfoBar scrollBar);
33+
ScrollInfo GetScrollInfo(ScrollInfoMask mask = ScrollInfoMask.SIF_ALL, ScrollInfoBar scrollBar = ScrollInfoBar.SB_BOTH);
3434

3535
/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
3636
/// <summary>Add text to the document at current position. (Scintilla feature 2001)</summary>

Visual Studio Project Template C#/PluginInfrastructure/ScintillaGateway.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public int GetCurrentLineNumber()
7171
/// <summary>
7272
/// Get the scroll information for the current Scintilla window.
7373
/// </summary>
74-
/// <param name="mask">Argumetns for the scroll information such as tracking</param>
74+
/// <param name="mask">Arguments for the scroll information such as tracking</param>
7575
/// <param name="scrollBar">Which scroll bar information are you looking for</param>
7676
/// <returns>A ScrollInfo struct with information of the current scroll state</returns>
77-
public ScrollInfo GetScrollInfo(ScrollInfoMask mask, ScrollInfoBar scrollBar)
77+
public ScrollInfo GetScrollInfo(ScrollInfoMask mask = ScrollInfoMask.SIF_ALL, ScrollInfoBar scrollBar = ScrollInfoBar.SB_BOTH)
7878
{
7979
ScrollInfo scrollInfo = new ScrollInfo();
8080
scrollInfo.cbSize = (uint)Marshal.SizeOf(scrollInfo);

0 commit comments

Comments
 (0)