dotnet / dotnet/dotnet-api-docs

RichTextBox.ShowSelectionMargin documentation having conflict with actual behavior

Open
#10,988 0 comments 0 reactions 0 assignees View on GitHub
area-WinForms untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Other (describe below)

### Description

The current documentation states that if the ShowSelectionMargin property is set to true, setting the ScrollBars property to RichTextBoxScrollBars.Horizontal, RichTextBoxScrollBars.Vertical, or RichTextBoxScrollBars.Both will not cause scroll bars to be displayed.

However, in Visual Studio, even with ShowSelectionMargin set to true, the scroll bars are still displayed when ScrollBars is set to Both, Vertical, or Horizontal. VS2019 and 2022 both having the same behavior.

Suggestion: Maybe the documentation can be updated to reflect the actual behavior observed in Visual Studio.

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.richtextbox.showselectionmargin?view=windowsdesktop-9.0

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Windows.Forms/RichTextBox.xml

### Document Version Independent Id

f3de60ee-46c3-0078-632c-b35fa44355bc

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.