System.Windows.Documents.TextSelection.GetPropertyValue C# (CSharp) Method

GetPropertyValue() public method

public GetPropertyValue ( DependencyProperty formattingProperty ) : object
formattingProperty DependencyProperty
return object
		public object GetPropertyValue (DependencyProperty formattingProperty)
		{
			Console.WriteLine ("System.Windows.Documents.TextSelection.GetPropertyValue () NIEX");
			throw new NotImplementedException ();
		}

Usage Example

Example #1
0
        public FontTypefaceHandler(swd.TextSelection range, sw.Controls.RichTextBox control)
        {
            var family  = range.GetPropertyValue(swd.TextElement.FontFamilyProperty) as swm.FontFamily ?? swd.TextElement.GetFontFamily(control);
            var style   = range.GetPropertyValue(swd.TextElement.FontStyleProperty) as sw.FontStyle? ?? swd.TextElement.GetFontStyle(control);
            var weight  = range.GetPropertyValue(swd.TextElement.FontWeightProperty) as sw.FontWeight? ?? swd.TextElement.GetFontWeight(control);
            var stretch = range.GetPropertyValue(swd.TextElement.FontStretchProperty) as sw.FontStretch? ?? swd.TextElement.GetFontStretch(control);

            Control = new swm.Typeface(family, style, weight, stretch);
        }
All Usage Examples Of System.Windows.Documents.TextSelection::GetPropertyValue