HighlightingTextBlock

Ecng.Xaml

Um controle especializado de blocos de texto com destaque. http://www.jeff.wilcox.name/2008/11/highlighting-autocompletebox/

Herda de: TextBlock

Implementa: IComponentConnector

Construtores

HighlightingTextBlock
public HighlightingTextBlock()
highlightingTextBlock = HighlightingTextBlock()

Inicializa uma nova classe HighlightingTextBlock.

Propriedades

HighlightBrush
public Brush HighlightBrush { get; set; }
value = highlightingTextBlock.HighlightBrush
highlightingTextBlock.HighlightBrush = value

Obtém ou define o pincel de realce.

HighlightFontWeight
public FontWeight HighlightFontWeight { get; set; }
value = highlightingTextBlock.HighlightFontWeight
highlightingTextBlock.HighlightFontWeight = value

Obtém ou define o peso da fonte usada no texto realçado.

HighlightText
public string HighlightText { get; set; }
value = highlightingTextBlock.HighlightText
highlightingTextBlock.HighlightText = value

Obtém ou define o texto realçado.

Métodos

ApplyHighlighting
private void ApplyHighlighting()
highlightingTextBlock.ApplyHighlighting()

Aplicar o realce visual.

InitializeComponent
public void InitializeComponent()
highlightingTextBlock.InitializeComponent()

InitializeComponent

OnHighlightBrushPropertyChanged
private static void OnHighlightBrushPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
HighlightingTextBlock.OnHighlightBrushPropertyChanged(d, e)

O manipulador alterado da propriedade HighlightBrushProperty.

d
HighlightingTextBlock que mudou a sua HighlightBrush.
e
Argumentos de eventos.
OnHighlightFontWeightPropertyChanged
private static void OnHighlightFontWeightPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
HighlightingTextBlock.OnHighlightFontWeightPropertyChanged(d, e)

O manipulador alterado da propriedade HighlightFontWeightProperty.

d
HighlightingTextBlock que mudou a sua HighlightFontWeight.
e
Argumentos de eventos.
OnHighlightTextPropertyChanged
private static void OnHighlightTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
HighlightingTextBlock.OnHighlightTextPropertyChanged(d, e)

HighlightText property changed handler.

d
AutoCompleteBox que mudou a sua HighlightText.
e
Argumentos de eventos.

Campos

HighlightBrushProperty
public static readonly DependencyProperty HighlightBrushProperty
value = HighlightingTextBlock.HighlightBrushProperty

Identifica a propriedade HighlightBrush dependência.

HighlightFontWeightProperty
public static readonly DependencyProperty HighlightFontWeightProperty
value = HighlightingTextBlock.HighlightFontWeightProperty

Identifica a propriedade HighlightFontWeight dependência.

HighlightTextProperty
public static readonly DependencyProperty HighlightTextProperty
value = HighlightingTextBlock.HighlightTextProperty

Identifica a propriedade HighlightText dependência.