Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CustomPaintRichText : RichTextBox, IUnderlineableSpellingControl
- {
- public Dictionary<int, int> underlinedSections;
- public Dictionary<int, int> protectedSections;
- public Dictionary<int, int> ignoredSections;
- public Dictionary<int, int> UnderlinedSections
- {
- get
- {
- if (underlinedSections == null)
- underlinedSections = new Dictionary<int, int>();
- return underlinedSections;
- }
- set { underlinedSections = value; }
- }
- public Dictionary<int, int> ProtectedSections
- {
- set { protectedSections = value; }
- }
- public Dictionary<int, int> IgnoredSections
- {
- set { ignoredSections = value; }
- }
- private bool spellingEnabled;
- private bool spellingAutoEnabled;
- private bool isPassWordProtected;
- private Pen penColour;
- public Pen WhatPenColour
- {
- get { return penColour; }
- set { penColour = value; }
- }
- public bool IsSpellingEnabled
- {
- get { return spellingEnabled; }
- set { spellingEnabled = value; }
- }
- public bool IsSpellingAutoEnabled
- {
- get { return spellingAutoEnabled; }
- set
- {
- spellingAutoEnabled = value;
- if (!spellingEnabled) spellingEnabled = value;
- }
- }
- public bool IsPassWordProtected
- {
- get { return isPassWordProtected; }
- set { isPassWordProtected = value; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment