Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- AttachedAnnotation.cs
- InheritedPropertyDescriptor.cs
- TemporaryBitmapFile.cs
- FontCacheUtil.cs
- GroupBox.cs
- StringArrayConverter.cs
- QuaternionAnimation.cs
- DataControlField.cs
- COM2ExtendedUITypeEditor.cs
- ToolZone.cs
- WhitespaceSignificantCollectionAttribute.cs
- DbSourceCommand.cs
- TypeBuilderInstantiation.cs
- PinnedBufferMemoryStream.cs
- XmlSchemaChoice.cs
- DataAccessException.cs
- HideDisabledControlAdapter.cs
- ColorAnimation.cs
- SqlFactory.cs
- TableItemStyle.cs
- StringInfo.cs
- SrgsElementFactoryCompiler.cs
- SendSecurityHeader.cs
- SelectionBorderGlyph.cs
- WindowShowOrOpenTracker.cs
- X509CertificateStore.cs
- ErrorHandlerFaultInfo.cs
- XmlSchemaCompilationSettings.cs
- XmlCharCheckingWriter.cs
- CodeCommentStatementCollection.cs
- TypeDescriptorContext.cs
- UpdateCommand.cs
- DynamicField.cs
- DPCustomTypeDescriptor.cs
- EventWaitHandle.cs
- DiscoveryServerProtocol.cs
- MsmqIntegrationChannelListener.cs
- EtwTrace.cs
- StorageEndPropertyMapping.cs
- Pair.cs
- ContextProperty.cs
- PersonalizationState.cs
- DocumentGrid.cs
- LogEntrySerializationException.cs
- ResolvedKeyFrameEntry.cs
- OperationSelectorBehavior.cs
- Variable.cs
- GZipStream.cs
- NestedContainer.cs
- SystemException.cs
- EntityConnectionStringBuilderItem.cs
- input.cs
- ZipIOLocalFileHeader.cs
- SettingsPropertyIsReadOnlyException.cs
- Repeater.cs
- DocumentSchemaValidator.cs
- WinFormsSpinner.cs
- ExpressionReplacer.cs
- DbProviderFactoriesConfigurationHandler.cs
- ColumnWidthChangingEvent.cs
- RichTextBox.cs
- PropertyFilterAttribute.cs
- SqlConnectionHelper.cs
- ConfigurationManagerInternal.cs
- SmiEventSink_Default.cs
- ClaimTypeElement.cs
- PropertyChangeTracker.cs
- ImageSourceValueSerializer.cs
- NodeLabelEditEvent.cs
- documentation.cs
- _Events.cs
- ButtonBase.cs
- MulticastDelegate.cs
- ClientConfigPaths.cs
- FontWeightConverter.cs
- ThrowHelper.cs
- QuerySettings.cs
- DataControlLinkButton.cs
- OpCopier.cs
- PngBitmapEncoder.cs
- SQLUtility.cs
- DataGridTableCollection.cs
- CompilerGlobalScopeAttribute.cs
- Byte.cs
- ScaleTransform3D.cs
- SQLDouble.cs
- CheckPair.cs
- FreezableDefaultValueFactory.cs
- TreeNode.cs
- HandleRef.cs
- BreakRecordTable.cs
- CryptoProvider.cs
- DecoderBestFitFallback.cs
- Quaternion.cs
- X509Extension.cs
- RadioButtonPopupAdapter.cs
- NamedPipeTransportSecurity.cs
- EnumCodeDomSerializer.cs
- login.cs
- WizardPanel.cs