internal override void OnRange(UnsafeNativeMethods.ITfProperty property, int ecReadOnly, UnsafeNativeMethods.ITfRange range) { int int32Value = this.GetInt32Value(ecReadOnly, property, range); if (int32Value != 0) { TextServicesDisplayAttribute displayAttribute = TextServicesDisplayAttributePropertyRanges.GetDisplayAttribute(int32Value); if (displayAttribute != null) { ITextPointer start; ITextPointer end; base.ConvertToTextPosition(range, out start, out end); displayAttribute.Apply(start, end); } } }