Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Documents / TextEditorThreadLocalStore.cs / 1 / 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
- BitConverter.cs
- SqlFacetAttribute.cs
- StylusPointCollection.cs
- RoutedCommand.cs
- SoapAttributeOverrides.cs
- PatternMatchRules.cs
- CaseStatementSlot.cs
- NavigationWindowAutomationPeer.cs
- LogLogRecordHeader.cs
- DataRelation.cs
- SerializationHelper.cs
- SynchronousReceiveBehavior.cs
- EventSourceCreationData.cs
- FlowDocumentFormatter.cs
- SystemWebCachingSectionGroup.cs
- CqlIdentifiers.cs
- ServicesSection.cs
- SQLInt64Storage.cs
- TemplateComponentConnector.cs
- SerialPinChanges.cs
- CodeNamespaceImportCollection.cs
- MenuEventArgs.cs
- ModelFunctionTypeElement.cs
- DbBuffer.cs
- DataGridTable.cs
- Figure.cs
- AutomationPeer.cs
- TraceUtility.cs
- UpdateCommand.cs
- MinimizableAttributeTypeConverter.cs
- VisualStyleElement.cs
- StringWriter.cs
- InkCanvas.cs
- XmlConvert.cs
- TableItemPatternIdentifiers.cs
- StringExpressionSet.cs
- basemetadatamappingvisitor.cs
- RTLAwareMessageBox.cs
- StringFunctions.cs
- WebReferenceCollection.cs
- ColorPalette.cs
- EventProxy.cs
- MediaTimeline.cs
- EntityClientCacheEntry.cs
- ICspAsymmetricAlgorithm.cs
- AdornedElementPlaceholder.cs
- CommonRemoteMemoryBlock.cs
- UndirectedGraph.cs
- SqlMethodAttribute.cs
- CodeDirectiveCollection.cs
- UIPermission.cs
- VirtualPath.cs
- Int16KeyFrameCollection.cs
- XpsS0ValidatingLoader.cs
- HwndMouseInputProvider.cs
- ClientRequest.cs
- Page.cs
- CursorInteropHelper.cs
- WsatServiceCertificate.cs
- PropertyReferenceSerializer.cs
- documentsequencetextview.cs
- ContextProperty.cs
- ParseHttpDate.cs
- IsolatedStorageFileStream.cs
- RectIndependentAnimationStorage.cs
- OleDbEnumerator.cs
- PathGeometry.cs
- GridViewUpdatedEventArgs.cs
- CodeNamespaceCollection.cs
- RegexCode.cs
- WebPartTransformer.cs
- Thickness.cs
- ConstNode.cs
- Calendar.cs
- XMLSyntaxException.cs
- FormattedTextSymbols.cs
- UiaCoreProviderApi.cs
- Atom10ItemFormatter.cs
- SchemaLookupTable.cs
- SrgsRuleRef.cs
- FacetValueContainer.cs
- TraceEventCache.cs
- XhtmlTextWriter.cs
- DataSourceExpressionCollection.cs
- NetworkCredential.cs
- VectorValueSerializer.cs
- ExtensionWindowResizeGrip.cs
- FormViewDeletedEventArgs.cs
- ToolStripButton.cs
- XamlBrushSerializer.cs
- PreservationFileReader.cs
- XmlSerializerSection.cs
- CheckBoxStandardAdapter.cs
- SecurityContextSecurityTokenParameters.cs
- BamlMapTable.cs
- AssociationTypeEmitter.cs
- ObjectStorage.cs
- ScriptingRoleServiceSection.cs
- FrameworkElementAutomationPeer.cs
- EventMappingSettings.cs