Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichTextBox.ShowSelectionMargin documentation having conflict with actual behavior #10988

Open
Liv-Goh opened this issue Feb 21, 2025 · 0 comments
Labels
area-WinForms Issues or PRs that relate to WinForms. untriaged New issue has not been triaged by the area owner

Comments

@Liv-Goh
Copy link

Liv-Goh commented Feb 21, 2025

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

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-WinForms Issues or PRs that relate to WinForms. label Feb 21, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WinForms Issues or PRs that relate to WinForms. untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant