Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CodeAttributeArgumentCollection.cs
- VarRemapper.cs
- ExpressionBuilder.cs
- SafeSecurityHandles.cs
- UpdateProgress.cs
- QueryContinueDragEvent.cs
- XmlStreamStore.cs
- ExtendedProtectionPolicy.cs
- TCPClient.cs
- EntityDataSourceDataSelection.cs
- DesignerHierarchicalDataSourceView.cs
- CodeCompileUnit.cs
- XmlTextReader.cs
- RequestCacheManager.cs
- TypeUtils.cs
- GenerateHelper.cs
- Compiler.cs
- ExtractorMetadata.cs
- ThreadInterruptedException.cs
- ImageAttributes.cs
- Codec.cs
- VScrollProperties.cs
- assemblycache.cs
- OleStrCAMarshaler.cs
- SyndicationLink.cs
- DurableErrorHandler.cs
- MessageQueueKey.cs
- TableColumn.cs
- Baml2006ReaderContext.cs
- DataPointer.cs
- UnsafeNativeMethods.cs
- ByteFacetDescriptionElement.cs
- GetLedgerEntryForRecipientRequest.cs
- XmlSerializer.cs
- QuaternionAnimation.cs
- ServiceDurableInstance.cs
- ScriptControl.cs
- RemoteWebConfigurationHostServer.cs
- CommonRemoteMemoryBlock.cs
- ClearCollection.cs
- COMException.cs
- BufferModeSettings.cs
- StatusBar.cs
- XmlSchemaSet.cs
- SweepDirectionValidation.cs
- WebPartCatalogCloseVerb.cs
- SystemBrushes.cs
- IsolatedStoragePermission.cs
- DataControlFieldCell.cs
- DataGridViewButtonColumn.cs
- InvariantComparer.cs
- Header.cs
- DataGridCaption.cs
- DrawingBrush.cs
- EpmContentDeSerializerBase.cs
- HttpValueCollection.cs
- ArrayList.cs
- LockCookie.cs
- RIPEMD160Managed.cs
- ChannelSinkStacks.cs
- DebugController.cs
- StylusDownEventArgs.cs
- RootNamespaceAttribute.cs
- MultipartIdentifier.cs
- SqlClientWrapperSmiStream.cs
- ColumnCollectionEditor.cs
- PermissionSetTriple.cs
- XmlHierarchyData.cs
- ResizeGrip.cs
- TemplateComponentConnector.cs
- SigningCredentials.cs
- ResourceExpressionEditorSheet.cs
- RightsManagementEncryptionTransform.cs
- ScriptReference.cs
- BufferModesCollection.cs
- CompositeKey.cs
- OleDbRowUpdatingEvent.cs
- FilterElement.cs
- DesignerResources.cs
- LocalIdKeyIdentifierClause.cs
- EntityAdapter.cs
- AppSettingsExpressionBuilder.cs
- messageonlyhwndwrapper.cs
- DecoderExceptionFallback.cs
- ValueQuery.cs
- ApplicationGesture.cs
- BookmarkUndoUnit.cs
- StrokeDescriptor.cs
- EmptyReadOnlyDictionaryInternal.cs
- ResolvedKeyFrameEntry.cs
- BuilderPropertyEntry.cs
- AppDomainFactory.cs
- SoapSchemaImporter.cs
- TemplateParser.cs
- ExclusiveCanonicalizationTransform.cs
- DbParameterHelper.cs
- SelectedDatesCollection.cs
- IgnoreFileBuildProvider.cs
- MembershipPasswordException.cs
- DataGridViewHitTestInfo.cs