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
- RuntimeResourceSet.cs
- Currency.cs
- ImageList.cs
- TriggerCollection.cs
- KerberosRequestorSecurityToken.cs
- newinstructionaction.cs
- CheckBoxBaseAdapter.cs
- SessionEndedEventArgs.cs
- ArcSegment.cs
- SuppressMergeCheckAttribute.cs
- RotateTransform.cs
- QueryInterceptorAttribute.cs
- CombinedGeometry.cs
- FamilyTypeface.cs
- EnumMember.cs
- sqlstateclientmanager.cs
- AssemblyAttributesGoHere.cs
- ThreadAttributes.cs
- Converter.cs
- XmlDataSourceView.cs
- OutArgumentConverter.cs
- LambdaCompiler.cs
- ThumbButtonInfoCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- UnsafeNativeMethods.cs
- Content.cs
- CDSsyncETWBCLProvider.cs
- WinOEToolBoxItem.cs
- ContextMenuAutomationPeer.cs
- CultureInfo.cs
- ToolStripItemEventArgs.cs
- InspectionWorker.cs
- StorageFunctionMapping.cs
- XmlSchemaSimpleType.cs
- ControlCollection.cs
- SqlNamer.cs
- PropertyStore.cs
- NetTcpSection.cs
- GroupDescription.cs
- FilterQuery.cs
- DropShadowEffect.cs
- Accessors.cs
- ConnectionPointCookie.cs
- DataGridViewRowStateChangedEventArgs.cs
- dataSvcMapFileLoader.cs
- ProtocolsConfigurationEntry.cs
- DrawingGroup.cs
- SspiSafeHandles.cs
- TagMapCollection.cs
- WinEventTracker.cs
- TrustLevel.cs
- PrintPreviewGraphics.cs
- ColorMatrix.cs
- DocumentDesigner.cs
- LinearGradientBrush.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- FrameworkRichTextComposition.cs
- XsltContext.cs
- SessionSwitchEventArgs.cs
- TextSerializer.cs
- FixedElement.cs
- Setter.cs
- SQLInt16Storage.cs
- RestHandler.cs
- CqlParserHelpers.cs
- PerformanceCounterPermission.cs
- LedgerEntryCollection.cs
- PriorityQueue.cs
- LassoHelper.cs
- BoundColumn.cs
- MetaTableHelper.cs
- ResourceReferenceExpressionConverter.cs
- BaseDataListComponentEditor.cs
- MetaData.cs
- MatrixTransform3D.cs
- HistoryEventArgs.cs
- EventPropertyMap.cs
- CodeTryCatchFinallyStatement.cs
- SrgsText.cs
- DataStreamFromComStream.cs
- Command.cs
- GeneralEndpointIdentity.cs
- SerializationSectionGroup.cs
- ReaderOutput.cs
- CodeObject.cs
- StylusButtonCollection.cs
- FileUtil.cs
- SettingsAttributeDictionary.cs
- RubberbandSelector.cs
- TableLayoutStyleCollection.cs
- UdpRetransmissionSettings.cs
- FolderLevelBuildProviderCollection.cs
- ModuleBuilderData.cs
- ComponentChangingEvent.cs
- DiagnosticsConfiguration.cs
- ProcessManager.cs
- DataGridViewLayoutData.cs
- Random.cs
- SafeBitVector32.cs
- LockedActivityGlyph.cs