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
- SqlDataSourceCustomCommandEditor.cs
- TimelineCollection.cs
- DesignOnlyAttribute.cs
- SiteMapPath.cs
- ProtocolsConfigurationEntry.cs
- TraceData.cs
- StreamResourceInfo.cs
- BrowserDefinition.cs
- DefaultValueTypeConverter.cs
- FloaterParagraph.cs
- PackageStore.cs
- BorderSidesEditor.cs
- RijndaelCryptoServiceProvider.cs
- SerializeAbsoluteContext.cs
- DesignTimeXamlWriter.cs
- SiteMapNodeItem.cs
- GenericParameterDataContract.cs
- ValidatingPropertiesEventArgs.cs
- CompiledRegexRunner.cs
- FontUnitConverter.cs
- QilLoop.cs
- FilteredDataSetHelper.cs
- Control.cs
- HtmlControlPersistable.cs
- ArgumentOutOfRangeException.cs
- DataGridAddNewRow.cs
- StatementContext.cs
- FreezableCollection.cs
- MatrixValueSerializer.cs
- GenerateScriptTypeAttribute.cs
- ParseHttpDate.cs
- AdRotator.cs
- SpellCheck.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- WpfPayload.cs
- XmlEnumAttribute.cs
- OptionalColumn.cs
- SQLChars.cs
- ListBoxItemWrapperAutomationPeer.cs
- EmbeddedMailObject.cs
- ConfigurationPermission.cs
- RotateTransform.cs
- SchemaImporterExtensionElementCollection.cs
- IRCollection.cs
- SmiGettersStream.cs
- DATA_BLOB.cs
- ResourcesGenerator.cs
- ACE.cs
- IDReferencePropertyAttribute.cs
- CodeIdentifiers.cs
- LineUtil.cs
- TableRowCollection.cs
- WebPartConnectionsConnectVerb.cs
- TaskHelper.cs
- KeyInterop.cs
- IriParsingElement.cs
- SqlDataSourceTableQuery.cs
- TypeReference.cs
- TriggerActionCollection.cs
- DesignerTextViewAdapter.cs
- SubclassTypeValidator.cs
- NegotiationTokenAuthenticator.cs
- TextOptionsInternal.cs
- CollectionViewGroup.cs
- SendMessageRecord.cs
- RuntimeHelpers.cs
- DataGridViewTextBoxColumn.cs
- StringUtil.cs
- RetriableClipboard.cs
- UserControlAutomationPeer.cs
- __FastResourceComparer.cs
- DynamicActionMessageFilter.cs
- ToolboxItemAttribute.cs
- DotExpr.cs
- AccessorTable.cs
- SQLInt32.cs
- GroupBoxAutomationPeer.cs
- DataGridViewSelectedRowCollection.cs
- ByteStreamMessageEncoderFactory.cs
- FontFamily.cs
- ConfigXmlElement.cs
- SiteOfOriginContainer.cs
- NativeObjectSecurity.cs
- ExpressionPrefixAttribute.cs
- StylusPlugin.cs
- ClientSettingsStore.cs
- DataReaderContainer.cs
- Int64.cs
- EntityConnection.cs
- SafeBitVector32.cs
- SoapAttributeAttribute.cs
- ContentType.cs
- ExpressionConverter.cs
- JumpTask.cs
- DynamicMetaObjectBinder.cs
- CompensateDesigner.cs
- Win32SafeHandles.cs
- DataSourceCacheDurationConverter.cs
- BamlRecordHelper.cs
- WebPartDeleteVerb.cs