public bool IsApplied(SyntaxHighlightingTextbox exampleBox) { return(exampleBox.BackColor == this.Background && exampleBox.Comments == this.Comments && exampleBox.PlainText == this.PlainText && exampleBox.Keywords == this.Keywords && exampleBox.Commands == this.Commands && exampleBox.Font.Name == this.Font.Name && exampleBox.Font.Size == this.Font.Size && exampleBox.Font.Italic == this.Font.Italic && exampleBox.Font.Bold == this.Font.Bold); }
public void ApplyOptions(SyntaxHighlightingTextbox exampleBox) { exampleBox.BackColor = this.Background; exampleBox.Comments = this.Comments; exampleBox.PlainText = this.PlainText; exampleBox.Keywords = this.Keywords; exampleBox.Commands = this.Commands; exampleBox.Font = this.Font; exampleBox.RefreshColors(); exampleBox.DeselectAll(); }