ICSharpCode.TextEditor.TextEditorControlBase.OnReloadHighlighting C# (CSharp) Метод

OnReloadHighlighting() защищенный Метод

protected OnReloadHighlighting ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
		protected virtual void OnReloadHighlighting(object sender, EventArgs e)
		{
			if (Document.HighlightingStrategy != null) {
				try {
					Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy(Document.HighlightingStrategy.Name);
				} catch (HighlightingDefinitionInvalidException ex) {
					MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
				}
				OptionsChanged();
			}
		}