Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / TextServicesProperty.cs / 1305600 / 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
- AnimationClock.cs
- KeyValueConfigurationCollection.cs
- FrameAutomationPeer.cs
- StrokeCollectionDefaultValueFactory.cs
- XmlSchemaParticle.cs
- JsonWriter.cs
- UidManager.cs
- MasterPage.cs
- SiteMapNodeItem.cs
- HttpContextServiceHost.cs
- XmlLanguageConverter.cs
- Span.cs
- TypeForwardedToAttribute.cs
- cookiecontainer.cs
- SoundPlayer.cs
- ProtocolsConfigurationHandler.cs
- Annotation.cs
- QueryContinueDragEventArgs.cs
- IteratorFilter.cs
- AuthenticationSection.cs
- MetadataCache.cs
- BasicBrowserDialog.designer.cs
- AppDomainUnloadedException.cs
- GCHandleCookieTable.cs
- DbMetaDataCollectionNames.cs
- ProfilePropertySettingsCollection.cs
- SimpleTextLine.cs
- TouchesCapturedWithinProperty.cs
- HtmlElementEventArgs.cs
- HierarchicalDataBoundControl.cs
- PlainXmlWriter.cs
- PageCatalogPart.cs
- KeyToListMap.cs
- CoreSwitches.cs
- MemberCollection.cs
- ToolStripRenderer.cs
- HtmlTable.cs
- TrustExchangeException.cs
- TextParentUndoUnit.cs
- UserControl.cs
- SecurityException.cs
- ContractListAdapter.cs
- WebPartCollection.cs
- TextSearch.cs
- ResourceProviderFactory.cs
- LockCookie.cs
- ComNativeDescriptor.cs
- ExplicitDiscriminatorMap.cs
- PointCollectionValueSerializer.cs
- HtmlInputHidden.cs
- InvalidContentTypeException.cs
- NameValueSectionHandler.cs
- HttpWriter.cs
- TransformConverter.cs
- WorkflowInstanceProvider.cs
- FlowDocumentView.cs
- TraceSection.cs
- XmlHierarchicalDataSourceView.cs
- LinqDataSourceDisposeEventArgs.cs
- XpsFilter.cs
- RectAnimationUsingKeyFrames.cs
- PointAnimationBase.cs
- CustomServiceCredentials.cs
- ServiceDocument.cs
- SortQuery.cs
- DelimitedListTraceListener.cs
- OdbcParameter.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- OrderPreservingSpoolingTask.cs
- SizeAnimation.cs
- WindowsFont.cs
- RenderingEventArgs.cs
- AutomationAttributeInfo.cs
- InvalidProgramException.cs
- PropertyGeneratedEventArgs.cs
- BasicViewGenerator.cs
- QueuePropertyVariants.cs
- InvokeBinder.cs
- RequestCache.cs
- ObjectConverter.cs
- ScriptManagerProxy.cs
- OleDbParameter.cs
- EncryptedData.cs
- OutputWindow.cs
- DateTimeSerializationSection.cs
- DetailsViewInsertedEventArgs.cs
- ParserStreamGeometryContext.cs
- CodeIterationStatement.cs
- TdsEnums.cs
- ThreadAbortException.cs
- TextCollapsingProperties.cs
- SiteMapSection.cs
- FileVersionInfo.cs
- BindUriHelper.cs
- TableLayoutPanelCellPosition.cs
- filewebresponse.cs
- manifestimages.cs
- TreeNodeEventArgs.cs
- base64Transforms.cs
- MinMaxParagraphWidth.cs