Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / UIAutomation / UIAutomationTypes / System / Windows / Automation / StructureChangedEventArgs.cs / 1 / StructureChangedEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Structure changed event args class // // History: // 05/25/2004 : MKarr copied from LogicalStructureChangedEventArgs.cs // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; using System.Runtime.InteropServices; using MS.Internal.Automation; namespace System.Windows.Automation { ////// Delegate to handle logical structure change events /// #if (INTERNAL_COMPILE) internal delegate void StructureChangedEventHandler(object sender, StructureChangedEventArgs e); #else public delegate void StructureChangedEventHandler(object sender, StructureChangedEventArgs e); #endif ////// Logical structure change flags /// [ComVisible(true)] [Guid("e4cfef41-071d-472c-a65c-c14f59ea81eb")] #if (INTERNAL_COMPILE) internal enum StructureChangeType #else public enum StructureChangeType #endif { ///Logical child added ChildAdded, ///Logical child removed ChildRemoved, ///Logical children invalidated ChildrenInvalidated, ///Logical children were bulk added ChildrenBulkAdded, ///Logical children were bulk removed ChildrenBulkRemoved, ///The order of the children below their parent has changed. ChildrenReordered, } ////// Structure changed event args class /// ///#if (INTERNAL_COMPILE) internal sealed class StructureChangedEventArgs : AutomationEventArgs #else public sealed class StructureChangedEventArgs : AutomationEventArgs #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors /// /// Constructor for logical structure changed event args. /// ///public StructureChangedEventArgs(StructureChangeType structureChangeType, int [] runtimeId) : base(AutomationElementIdentifiers.StructureChangedEvent) { if (runtimeId == null) { throw new ArgumentNullException("runtimeId"); } _structureChangeType = structureChangeType; _runtimeID = (int [])runtimeId.Clone(); } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties /// /// Returns the PAW runtime identifier /// ///public int [] GetRuntimeId() { return (int [])_runtimeID.Clone(); } /// /// Returns the the type of tree change: /// ///public StructureChangeType StructureChangeType { get { return _structureChangeType; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private StructureChangeType _structureChangeType; private int [] _runtimeID; #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: Structure changed event args class // // History: // 05/25/2004 : MKarr copied from LogicalStructureChangedEventArgs.cs // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; using System.Runtime.InteropServices; using MS.Internal.Automation; namespace System.Windows.Automation { ////// Delegate to handle logical structure change events /// #if (INTERNAL_COMPILE) internal delegate void StructureChangedEventHandler(object sender, StructureChangedEventArgs e); #else public delegate void StructureChangedEventHandler(object sender, StructureChangedEventArgs e); #endif ////// Logical structure change flags /// [ComVisible(true)] [Guid("e4cfef41-071d-472c-a65c-c14f59ea81eb")] #if (INTERNAL_COMPILE) internal enum StructureChangeType #else public enum StructureChangeType #endif { ///Logical child added ChildAdded, ///Logical child removed ChildRemoved, ///Logical children invalidated ChildrenInvalidated, ///Logical children were bulk added ChildrenBulkAdded, ///Logical children were bulk removed ChildrenBulkRemoved, ///The order of the children below their parent has changed. ChildrenReordered, } ////// Structure changed event args class /// ///#if (INTERNAL_COMPILE) internal sealed class StructureChangedEventArgs : AutomationEventArgs #else public sealed class StructureChangedEventArgs : AutomationEventArgs #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors /// /// Constructor for logical structure changed event args. /// ///public StructureChangedEventArgs(StructureChangeType structureChangeType, int [] runtimeId) : base(AutomationElementIdentifiers.StructureChangedEvent) { if (runtimeId == null) { throw new ArgumentNullException("runtimeId"); } _structureChangeType = structureChangeType; _runtimeID = (int [])runtimeId.Clone(); } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties /// /// Returns the PAW runtime identifier /// ///public int [] GetRuntimeId() { return (int [])_runtimeID.Clone(); } /// /// Returns the the type of tree change: /// ///public StructureChangeType StructureChangeType { get { return _structureChangeType; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private StructureChangeType _structureChangeType; private int [] _runtimeID; #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
- TextOnlyOutput.cs
- PersianCalendar.cs
- exports.cs
- Config.cs
- InputQueue.cs
- ThousandthOfEmRealPoints.cs
- WebRequestModuleElement.cs
- SpellCheck.cs
- ApplicationFileParser.cs
- _ListenerRequestStream.cs
- XmlDataSourceNodeDescriptor.cs
- RadioButton.cs
- CommandPlan.cs
- WorkflowApplicationTerminatedException.cs
- SystemIPGlobalStatistics.cs
- PublisherMembershipCondition.cs
- ServiceElement.cs
- HuffModule.cs
- StandardCommands.cs
- DateBoldEvent.cs
- StringFunctions.cs
- ChildTable.cs
- BigIntegerStorage.cs
- ObjectAnimationUsingKeyFrames.cs
- Rfc4050KeyFormatter.cs
- KeyInterop.cs
- TransformerInfoCollection.cs
- GridViewDesigner.cs
- AsyncOperationManager.cs
- Pkcs7Recipient.cs
- RegularExpressionValidator.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BitmapCodecInfoInternal.cs
- Unit.cs
- ContextMenuService.cs
- TraceData.cs
- Native.cs
- XmlNodeChangedEventManager.cs
- SchemaTypeEmitter.cs
- SQLBinaryStorage.cs
- PageCodeDomTreeGenerator.cs
- LogWriteRestartAreaState.cs
- AssociationSet.cs
- ServiceObjectContainer.cs
- CollectionViewGroupRoot.cs
- TextRunCacheImp.cs
- EntitySqlException.cs
- ServiceReflector.cs
- QilTernary.cs
- GridPattern.cs
- Line.cs
- MutexSecurity.cs
- _BasicClient.cs
- UIPropertyMetadata.cs
- CmsInterop.cs
- Control.cs
- DataGridViewSortCompareEventArgs.cs
- StatusBarPanelClickEvent.cs
- SchemaNames.cs
- FlowDocumentPaginator.cs
- ByteKeyFrameCollection.cs
- TextEditorTyping.cs
- IPEndPoint.cs
- RowUpdatedEventArgs.cs
- OleDbPropertySetGuid.cs
- UIElementPropertyUndoUnit.cs
- XmlTypeAttribute.cs
- IgnorePropertiesAttribute.cs
- GenericUriParser.cs
- NativeMethods.cs
- ParamArrayAttribute.cs
- FormViewDeletedEventArgs.cs
- MetabaseServerConfig.cs
- FreezableOperations.cs
- FontStretches.cs
- MDIControlStrip.cs
- ParserStreamGeometryContext.cs
- Int32.cs
- RequestQueue.cs
- SingleTagSectionHandler.cs
- TypeConverterHelper.cs
- IPAddressCollection.cs
- SchemaImporterExtensionsSection.cs
- ResourceAttributes.cs
- ValueSerializer.cs
- ComplexBindingPropertiesAttribute.cs
- ClientSettingsStore.cs
- BitmapMetadata.cs
- FormViewDeleteEventArgs.cs
- PenLineCapValidation.cs
- Win32.cs
- RuleSettingsCollection.cs
- ParameterBinding.cs
- RelationshipEnd.cs
- XmlHierarchicalDataSourceView.cs
- Blend.cs
- SqlDelegatedTransaction.cs
- SecurityIdentifierConverter.cs
- VerificationAttribute.cs
- WmlTextBoxAdapter.cs