Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Documents / TextServicesProperty.cs / 1 / TextServicesProperty.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: TextServicesProperty implementation. // // History: // 08/01/2003 : yutakas - Ported from dotnet tree. // //--------------------------------------------------------------------------- using System.Runtime.InteropServices; using System.Windows.Threading; using System.Security; using System.Security.Permissions; using System.Collections; using System.Diagnostics; using System.Windows.Media; using System.Windows.Input; using System.Windows.Documents; using MS.Win32; using System; namespace System.Windows.Documents { //----------------------------------------------------- // // TextServicesProperty class // //----------------------------------------------------- ////// This is an internal. /// This is a holder for Cicero properties. /// - Reading String. /// - Input Language. /// - Display Attribute. /// /// internal class TextServicesProperty { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- #region Constructors internal TextServicesProperty(TextStore textstore) { _textstore = textstore; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods /// /// Calback function for TextEditSink /// we track all property change here. /// ////// Critical - commits changes to edit buffer, might alow input spoofing /// [SecurityCritical] internal void OnEndEdit( UnsafeNativeMethods.ITfContext context, int ecReadOnly, UnsafeNativeMethods.ITfEditRecord editRecord) { if (_propertyRanges == null) { _propertyRanges = new TextServicesDisplayAttributePropertyRanges(_textstore); } _propertyRanges.OnEndEdit(context, ecReadOnly, editRecord); } // Callback from TextStore.OnLayoutUpdated. // Updates composition display attribute adorner on-screen location. internal void OnLayoutUpdated() { TextServicesDisplayAttributePropertyRanges displayAttributes = _propertyRanges as TextServicesDisplayAttributePropertyRanges; if (displayAttributes != null) { displayAttributes.OnLayoutUpdated(); } } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private TextServicesPropertyRanges _propertyRanges; private readonly TextStore _textstore; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: TextServicesProperty implementation. // // History: // 08/01/2003 : yutakas - Ported from dotnet tree. // //--------------------------------------------------------------------------- using System.Runtime.InteropServices; using System.Windows.Threading; using System.Security; using System.Security.Permissions; using System.Collections; using System.Diagnostics; using System.Windows.Media; using System.Windows.Input; using System.Windows.Documents; using MS.Win32; using System; namespace System.Windows.Documents { //----------------------------------------------------- // // TextServicesProperty class // //----------------------------------------------------- ////// This is an internal. /// This is a holder for Cicero properties. /// - Reading String. /// - Input Language. /// - Display Attribute. /// /// internal class TextServicesProperty { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- #region Constructors internal TextServicesProperty(TextStore textstore) { _textstore = textstore; } #endregion Constructors //------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ #region Internal Methods /// /// Calback function for TextEditSink /// we track all property change here. /// ////// Critical - commits changes to edit buffer, might alow input spoofing /// [SecurityCritical] internal void OnEndEdit( UnsafeNativeMethods.ITfContext context, int ecReadOnly, UnsafeNativeMethods.ITfEditRecord editRecord) { if (_propertyRanges == null) { _propertyRanges = new TextServicesDisplayAttributePropertyRanges(_textstore); } _propertyRanges.OnEndEdit(context, ecReadOnly, editRecord); } // Callback from TextStore.OnLayoutUpdated. // Updates composition display attribute adorner on-screen location. internal void OnLayoutUpdated() { TextServicesDisplayAttributePropertyRanges displayAttributes = _propertyRanges as TextServicesDisplayAttributePropertyRanges; if (displayAttributes != null) { displayAttributes.OnLayoutUpdated(); } } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private TextServicesPropertyRanges _propertyRanges; private readonly TextStore _textstore; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CallbackHandler.cs
- Int64.cs
- Base64WriteStateInfo.cs
- EventPrivateKey.cs
- ProviderConnectionPoint.cs
- LinkedList.cs
- HtmlPhoneCallAdapter.cs
- UserPersonalizationStateInfo.cs
- RoleBoolean.cs
- MimeWriter.cs
- CodeChecksumPragma.cs
- FileDataSourceCache.cs
- FamilyTypefaceCollection.cs
- ImageIndexEditor.cs
- AggregateNode.cs
- Stackframe.cs
- StrokeCollectionDefaultValueFactory.cs
- TablePattern.cs
- ServiceProviders.cs
- DataGridViewRowConverter.cs
- ToolStripLocationCancelEventArgs.cs
- StyleCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- MetafileHeaderWmf.cs
- XmlDocumentFragment.cs
- WebPartConnectionsEventArgs.cs
- NaturalLanguageHyphenator.cs
- GridLengthConverter.cs
- DATA_BLOB.cs
- SerialErrors.cs
- ApplicationException.cs
- HttpResponseWrapper.cs
- OleDbPermission.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- SoapUnknownHeader.cs
- SimpleRecyclingCache.cs
- PlainXmlDeserializer.cs
- ExpandCollapseProviderWrapper.cs
- ArraySet.cs
- FixedDocumentPaginator.cs
- TextLine.cs
- TextTreeObjectNode.cs
- MultilineStringEditor.cs
- OracleTransaction.cs
- OpCellTreeNode.cs
- DetailsViewPagerRow.cs
- FlagsAttribute.cs
- XmlnsDefinitionAttribute.cs
- TemplateBaseAction.cs
- XmlDocumentFragment.cs
- _TLSstream.cs
- Block.cs
- TableItemPattern.cs
- GorillaCodec.cs
- IRCollection.cs
- RefExpr.cs
- MessageBox.cs
- StrokeNode.cs
- SelectionHighlightInfo.cs
- Misc.cs
- SecurityAppliedMessage.cs
- SubtreeProcessor.cs
- NativeMethods.cs
- MethodBuilder.cs
- StrongNameKeyPair.cs
- WebPartVerbsEventArgs.cs
- Timeline.cs
- SpellCheck.cs
- OptimalTextSource.cs
- WorkflowRequestContext.cs
- DataContext.cs
- MessageSecurityVersionConverter.cs
- AdvancedBindingEditor.cs
- DataPointer.cs
- TextSpanModifier.cs
- MailHeaderInfo.cs
- Collection.cs
- TextBoxBaseDesigner.cs
- TcpChannelHelper.cs
- XsltConvert.cs
- DecoderBestFitFallback.cs
- PermissionToken.cs
- PrimitiveXmlSerializers.cs
- InputLanguageProfileNotifySink.cs
- WrappedIUnknown.cs
- XmlNotation.cs
- EncoderBestFitFallback.cs
- ToolStripContainer.cs
- RectConverter.cs
- UnknownWrapper.cs
- VisualStateManager.cs
- SignatureHelper.cs
- LifetimeServices.cs
- WizardPanelChangingEventArgs.cs
- LoginCancelEventArgs.cs
- RequestTimeoutManager.cs
- AmbiguousMatchException.cs
- CurrentTimeZone.cs
- RawStylusSystemGestureInputReport.cs
- CustomTypeDescriptor.cs