Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Documents / TextEditorThreadLocalStore.cs / 1305600 / TextEditorThreadLocalStore.cs
//---------------------------------------------------------------------------- // // File: TextEditorThreadLocalStore.cs // // Description: Thread local state for the TextEditor. // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using System.Collections; using System.Collections.Specialized; using System.Diagnostics; // Thread local state for the TextEditor. internal class TextEditorThreadLocalStore { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal TextEditorThreadLocalStore() { } #endregion Constructors //------------------------------------------------------ // // Internal methods // //----------------------------------------------------- //------------------------------------------------------ // // Internal Properties // //------------------------------------------------------ #region Internal Properties // Ref count for TextEditorTyping's InputLanguageChangeEventHandler. internal int InputLanguageChangeEventHandlerCount { get { return _inputLanguageChangeEventHandlerCount; } set { _inputLanguageChangeEventHandlerCount = value; } } // Queue of pending KeyDownEvent/TextInputEvent items. // We store events here, and handle them at Background priority. // This has the effect of batching multiple events when layout // cannot keep up with the input stream. // A non-null value means a background queue item is pending. internal ArrayList PendingInputItems { get { return _pendingInputItems; } set { _pendingInputItems = value; } } // Flag indicating that Shift key up happened immediately after Shift Down // without any intermediate key presses. This flag is used in // FlowDirection commands - Control+RightShift and Control+LeftShift (on KeyUp). internal bool PureControlShift { get { return _pureControlShift; } set { _pureControlShift = value; } } // Bidirectional input internal bool Bidi { get { return _bidi; } set { _bidi = value; } } // Currently active text selection - the one that owns a caret. internal TextSelection FocusedTextSelection { get { return _focusedTextSelection; } set { _focusedTextSelection = value; } } // Manages registration of all TextStores in a thread. internal TextServicesHost TextServicesHost { get { return _textServicesHost; } set { _textServicesHost = value; } } // Set true while hiding the mouse cursor after typing. internal bool HideCursor { get { return _hideCursor; } set { _hideCursor = value; } } #endregion Internal Properties //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields // Ref count for TextEditorTyping's InputLanguageChangeEventHandler. private int _inputLanguageChangeEventHandlerCount; // Queue of pending KeyDownEvent/TextInputEvent items. // We store events here, and handle them at Background priority. // This has the effect of batching multiple events when layout // cannot keep up with the input stream. // A non-null value means a background queue item is pending. private ArrayList _pendingInputItems; // Flag indicating that Shift key up happened immediately after Shift Down // without any intermediate key presses. This flag is used in // FlowDirection commands - Control+RightShift and Control+LeftShift (on KeyUp). private bool _pureControlShift; // bidi caret for middle east(Hebrew, Arablic) private bool _bidi; // Currently active text selection - the one that owns a caret. private TextSelection _focusedTextSelection; // Manages registration of all TextStores in a thread. private TextServicesHost _textServicesHost; // Set true while hiding the mouse cursor after typing. private bool _hideCursor; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // File: TextEditorThreadLocalStore.cs // // Description: Thread local state for the TextEditor. // //--------------------------------------------------------------------------- namespace System.Windows.Documents { using System.Collections; using System.Collections.Specialized; using System.Diagnostics; // Thread local state for the TextEditor. internal class TextEditorThreadLocalStore { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors internal TextEditorThreadLocalStore() { } #endregion Constructors //------------------------------------------------------ // // Internal methods // //----------------------------------------------------- //------------------------------------------------------ // // Internal Properties // //------------------------------------------------------ #region Internal Properties // Ref count for TextEditorTyping's InputLanguageChangeEventHandler. internal int InputLanguageChangeEventHandlerCount { get { return _inputLanguageChangeEventHandlerCount; } set { _inputLanguageChangeEventHandlerCount = value; } } // Queue of pending KeyDownEvent/TextInputEvent items. // We store events here, and handle them at Background priority. // This has the effect of batching multiple events when layout // cannot keep up with the input stream. // A non-null value means a background queue item is pending. internal ArrayList PendingInputItems { get { return _pendingInputItems; } set { _pendingInputItems = value; } } // Flag indicating that Shift key up happened immediately after Shift Down // without any intermediate key presses. This flag is used in // FlowDirection commands - Control+RightShift and Control+LeftShift (on KeyUp). internal bool PureControlShift { get { return _pureControlShift; } set { _pureControlShift = value; } } // Bidirectional input internal bool Bidi { get { return _bidi; } set { _bidi = value; } } // Currently active text selection - the one that owns a caret. internal TextSelection FocusedTextSelection { get { return _focusedTextSelection; } set { _focusedTextSelection = value; } } // Manages registration of all TextStores in a thread. internal TextServicesHost TextServicesHost { get { return _textServicesHost; } set { _textServicesHost = value; } } // Set true while hiding the mouse cursor after typing. internal bool HideCursor { get { return _hideCursor; } set { _hideCursor = value; } } #endregion Internal Properties //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields // Ref count for TextEditorTyping's InputLanguageChangeEventHandler. private int _inputLanguageChangeEventHandlerCount; // Queue of pending KeyDownEvent/TextInputEvent items. // We store events here, and handle them at Background priority. // This has the effect of batching multiple events when layout // cannot keep up with the input stream. // A non-null value means a background queue item is pending. private ArrayList _pendingInputItems; // Flag indicating that Shift key up happened immediately after Shift Down // without any intermediate key presses. This flag is used in // FlowDirection commands - Control+RightShift and Control+LeftShift (on KeyUp). private bool _pureControlShift; // bidi caret for middle east(Hebrew, Arablic) private bool _bidi; // Currently active text selection - the one that owns a caret. private TextSelection _focusedTextSelection; // Manages registration of all TextStores in a thread. private TextServicesHost _textServicesHost; // Set true while hiding the mouse cursor after typing. private bool _hideCursor; #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
- FillBehavior.cs
- XmlTextAttribute.cs
- X509Certificate2Collection.cs
- DirectoryInfo.cs
- SmtpNetworkElement.cs
- ComponentChangingEvent.cs
- DataSvcMapFile.cs
- HiddenField.cs
- FigureParaClient.cs
- DocumentViewer.cs
- LassoSelectionBehavior.cs
- HttpConfigurationSystem.cs
- StateMachineSubscriptionManager.cs
- UpdatePanelTriggerCollection.cs
- Authorization.cs
- PartialTrustVisibleAssembliesSection.cs
- HierarchicalDataBoundControl.cs
- StateDesignerConnector.cs
- SelectionItemProviderWrapper.cs
- PreviewPageInfo.cs
- XmlDataSourceView.cs
- VolatileResourceManager.cs
- x509store.cs
- Int32KeyFrameCollection.cs
- TreeViewItemAutomationPeer.cs
- InfoCardSymmetricCrypto.cs
- ValidationPropertyAttribute.cs
- DoubleAverageAggregationOperator.cs
- MarshalByRefObject.cs
- DataGridViewCellCancelEventArgs.cs
- UIElementIsland.cs
- OperationFormatUse.cs
- JapaneseCalendar.cs
- XmlDataProvider.cs
- While.cs
- DataGridTableStyleMappingNameEditor.cs
- LeaseManager.cs
- ReadOnlyDictionary.cs
- SHA384.cs
- SessionStateItemCollection.cs
- MatrixTransform.cs
- RetriableClipboard.cs
- MimeWriter.cs
- EmissiveMaterial.cs
- SafePEFileHandle.cs
- CollectionViewProxy.cs
- HostedTransportConfigurationManager.cs
- BinaryWriter.cs
- ControlBuilderAttribute.cs
- TextMarkerSource.cs
- SignatureGenerator.cs
- PolicyChain.cs
- IdentitySection.cs
- PropertyDescriptorCollection.cs
- ProvidePropertyAttribute.cs
- RequestCacheEntry.cs
- StackBuilderSink.cs
- Interlocked.cs
- HtmlFormWrapper.cs
- HttpModuleActionCollection.cs
- ApplicationException.cs
- ManagedWndProcTracker.cs
- SecurityException.cs
- SystemEvents.cs
- UmAlQuraCalendar.cs
- VSWCFServiceContractGenerator.cs
- RadialGradientBrush.cs
- InstanceHandleConflictException.cs
- ObjectComplexPropertyMapping.cs
- Perspective.cs
- TypeInfo.cs
- ExpressionVisitor.cs
- HierarchicalDataSourceControl.cs
- GeometryConverter.cs
- SmtpException.cs
- TimelineClockCollection.cs
- COM2TypeInfoProcessor.cs
- Source.cs
- TopClause.cs
- ViewBox.cs
- RenderDataDrawingContext.cs
- TextLine.cs
- ProtocolsSection.cs
- DataException.cs
- PagerSettings.cs
- ObjectIDGenerator.cs
- ScopeElementCollection.cs
- DashStyle.cs
- DataMemberFieldEditor.cs
- RedBlackList.cs
- URLAttribute.cs
- ReadOnlyDataSourceView.cs
- ColorTranslator.cs
- HwndTarget.cs
- dtdvalidator.cs
- GlyphShapingProperties.cs
- HyperLinkField.cs
- InvokeProviderWrapper.cs
- GenericUriParser.cs
- ConnectionStringsSection.cs