Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added missing method SCI_SETTABINDENTS.
Added missing method SCI_SETBACKSPACEUNINDENTS
  • Loading branch information
Stumpii committed Apr 9, 2019
commit c48111fc4af622f1e45b1ebb00c7a43b811fb8b2
40 changes: 40 additions & 0 deletions src/ScintillaNET/Scintilla.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3395,6 +3395,26 @@ public override ImageLayout BackgroundImageLayout
}
}

/// <summary>
/// Gets or sets whether backspace deletes a character, or unindents.
/// </summary>
/// <returns>Whether backspace deletes a character, (false) or unindents (true).</returns>
[DefaultValue(false)]
[Category("Indentation")]
[Description("Determines whether backspace deletes a character, or unindents.")]
public bool BackspaceUnindents
{
get
{
return (DirectMessage(NativeMethods.SCI_GETBACKSPACEUNINDENTS) != IntPtr.Zero);
}
set
{
var ptr = (value ? new IntPtr(1) : IntPtr.Zero);
DirectMessage(NativeMethods.SCI_SETBACKSPACEUNINDENTS, ptr);
}
}

/// <summary>
/// Gets or sets the border type of the <see cref="Scintilla" /> control.
/// </summary>
Expand Down Expand Up @@ -5023,6 +5043,26 @@ public TabDrawMode TabDrawMode
}
}

/// <summary>
/// Gets or sets whether tab inserts a tab character, or indents.
/// </summary>
/// <returns>Whether tab inserts a tab character (false), or indents (true).</returns>
[DefaultValue(false)]
[Category("Indentation")]
[Description("Determines whether tab inserts a tab character, or indents.")]
public bool TabIndents
{
get
{
return (DirectMessage(NativeMethods.SCI_GETTABINDENTS) != IntPtr.Zero);
}
set
{
var ptr = (value ? new IntPtr(1) : IntPtr.Zero);
DirectMessage(NativeMethods.SCI_SETTABINDENTS, ptr);
}
}

/// <summary>
/// Gets or sets the width of a tab as a multiple of a space character.
/// </summary>
Expand Down