Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Documents / TextServicesProperty.cs / 1 / TextServicesProperty.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: TextServicesProperty implementation. // // History: // 08/01/2003 : [....] - 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
- ProviderConnectionPoint.cs
- PropertyItem.cs
- ExceptionAggregator.cs
- XmlHierarchyData.cs
- HostProtectionPermission.cs
- WebPartConnectionsEventArgs.cs
- FileFormatException.cs
- TextFindEngine.cs
- SequentialOutput.cs
- BehaviorEditorPart.cs
- InfiniteIntConverter.cs
- CallInfo.cs
- CompositeDataBoundControl.cs
- FormatStringEditor.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ServiceDesigner.cs
- SqlNode.cs
- VerificationAttribute.cs
- InfoCardTraceRecord.cs
- XhtmlBasicImageAdapter.cs
- ExtensionElement.cs
- ValidatorCollection.cs
- UniqueConstraint.cs
- WindowInteropHelper.cs
- DataSourceSelectArguments.cs
- ValidationResult.cs
- JoinCqlBlock.cs
- TraceLog.cs
- SqlFunctions.cs
- UnhandledExceptionEventArgs.cs
- RowToFieldTransformer.cs
- CompareInfo.cs
- MsmqTransportElement.cs
- ReflectionTypeLoadException.cs
- BitmapFrameDecode.cs
- ConnectionPoolManager.cs
- ScheduleChanges.cs
- Literal.cs
- SQLBinary.cs
- DistributedTransactionPermission.cs
- AstTree.cs
- BindingEntityInfo.cs
- ShutDownListener.cs
- GenericPrincipal.cs
- _ContextAwareResult.cs
- DockPattern.cs
- FullTextBreakpoint.cs
- ComponentManagerBroker.cs
- LinearGradientBrush.cs
- KeyFrames.cs
- JumpTask.cs
- Message.cs
- CredentialCache.cs
- CodeDomSerializerBase.cs
- WebResourceAttribute.cs
- DetailsViewAutoFormat.cs
- CapabilitiesAssignment.cs
- InfiniteTimeSpanConverter.cs
- ToolBar.cs
- SafeProcessHandle.cs
- DesignerEventService.cs
- XmlProcessingInstruction.cs
- ListViewUpdateEventArgs.cs
- GregorianCalendar.cs
- Size3D.cs
- ScriptComponentDescriptor.cs
- IndexerNameAttribute.cs
- invalidudtexception.cs
- BrowserTree.cs
- EmptyControlCollection.cs
- UnknownBitmapEncoder.cs
- ParserStack.cs
- MulticastOption.cs
- GuidConverter.cs
- _HeaderInfo.cs
- WebAdminConfigurationHelper.cs
- QuaternionAnimationUsingKeyFrames.cs
- MethodBuilder.cs
- ShaderEffect.cs
- ByteStream.cs
- SystemNetworkInterface.cs
- DataGridViewTopRowAccessibleObject.cs
- Point3DIndependentAnimationStorage.cs
- DetailsViewDesigner.cs
- TextCompositionEventArgs.cs
- ZoneIdentityPermission.cs
- UidManager.cs
- MethodBuilder.cs
- ToolTip.cs
- ChannelSinkStacks.cs
- CharEntityEncoderFallback.cs
- MarkupProperty.cs
- IdnElement.cs
- FormViewPagerRow.cs
- PresentationTraceSources.cs
- DropDownList.cs
- CodeGen.cs
- BooleanStorage.cs
- GC.cs
- AsymmetricKeyExchangeFormatter.cs