Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RequestBringIntoViewEventArgs.cs
- TextTreeRootNode.cs
- ListBox.cs
- SelectionList.cs
- Choices.cs
- BuildResultCache.cs
- Switch.cs
- DiscoveryReference.cs
- XmlSchemas.cs
- AssemblySettingAttributes.cs
- TraceShell.cs
- XmlSchemaException.cs
- ExplicitDiscriminatorMap.cs
- HwndHost.cs
- PlainXmlSerializer.cs
- StreamingContext.cs
- basenumberconverter.cs
- AuthenticationService.cs
- Nullable.cs
- NavigatorOutput.cs
- LambdaCompiler.Generated.cs
- ExpressionEditorAttribute.cs
- ParserStack.cs
- Config.cs
- BaseValidator.cs
- NameValueConfigurationElement.cs
- HtmlInputControl.cs
- EdmSchemaAttribute.cs
- MembershipSection.cs
- PathFigureCollection.cs
- FrameworkElementAutomationPeer.cs
- WmpBitmapEncoder.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ProxyWebPartManager.cs
- SQLByte.cs
- DataBinding.cs
- CurrentChangingEventManager.cs
- WriterOutput.cs
- WebHttpBehavior.cs
- ContentFilePart.cs
- OdbcConnectionPoolProviderInfo.cs
- MenuItemAutomationPeer.cs
- QilTargetType.cs
- Line.cs
- DetailsViewCommandEventArgs.cs
- BinaryUtilClasses.cs
- ConfigurationManagerHelperFactory.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DbMetaDataFactory.cs
- DataContract.cs
- SqlSelectStatement.cs
- ObjectDataSourceMethodEventArgs.cs
- GridView.cs
- BufferedGraphicsManager.cs
- BreakRecordTable.cs
- Parser.cs
- BlurBitmapEffect.cs
- DrawListViewColumnHeaderEventArgs.cs
- IdentityModelStringsVersion1.cs
- CounterCreationData.cs
- StateBag.cs
- XPathItem.cs
- BaseConfigurationRecord.cs
- OutputCacheProfile.cs
- MergeFailedEvent.cs
- DataTableCollection.cs
- SoapEnumAttribute.cs
- BrowserCapabilitiesFactoryBase.cs
- EllipseGeometry.cs
- ListViewDataItem.cs
- Registry.cs
- PriorityItem.cs
- KoreanLunisolarCalendar.cs
- MessageProtectionOrder.cs
- JournalNavigationScope.cs
- OdbcErrorCollection.cs
- DefaultValueConverter.cs
- AvTraceFormat.cs
- GenericEnumerator.cs
- EventManager.cs
- UriTemplateClientFormatter.cs
- QilPatternFactory.cs
- SettingsSection.cs
- EntityContainerEmitter.cs
- UnmanagedMarshal.cs
- ModelItemExtensions.cs
- Compiler.cs
- Exception.cs
- IndentedTextWriter.cs
- NotImplementedException.cs
- IRCollection.cs
- MachineKeySection.cs
- QilInvokeLateBound.cs
- OdbcException.cs
- TrustVersion.cs
- EntityDataSourceReferenceGroup.cs
- TemplatedControlDesigner.cs
- CircleEase.cs
- WorkflowViewManager.cs
- RelatedImageListAttribute.cs