public TextStyleDesignerDialog(TextStyle Style)
        {
            this._Style = Style;
            this._TmpStyle = (TextStyle) Style.Clone();

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.pgStyles.SelectedObject = this._TmpStyle;
            lblCaption.Text = _Style.ToString();
            PreviewStyle();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
        //done
        private TextStyle GetStyle(string Name)
        {
            if (styleLookup[Name] == null)
            {
                var s = new TextStyle();
                styleLookup.Add(Name, s);
            }

            return (TextStyle) styleLookup[Name];
        }
Exemplo n.º 3
0
        public BlockType()
        {
            this.KeywordsList = new PatternListList(this);
            this.OperatorsList = new PatternListList(this);

            Style = new TextStyle();
            KeywordsList.Parent = this;
            KeywordsList.IsKeyword = true;
            OperatorsList.Parent = this;
            OperatorsList.IsOperator = true;
            ScopePatterns = new ScopeCollection(this);
        }