Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- OdbcConnectionPoolProviderInfo.cs
- PasswordPropertyTextAttribute.cs
- DeflateStream.cs
- serverconfig.cs
- DropShadowBitmapEffect.cs
- ModelTreeEnumerator.cs
- ExpressionNormalizer.cs
- SqlDataSourceView.cs
- InputProcessorProfilesLoader.cs
- safelinkcollection.cs
- FigureHelper.cs
- complextypematerializer.cs
- ExtensionSimplifierMarkupObject.cs
- Table.cs
- ControlEvent.cs
- OleAutBinder.cs
- AttachedPropertiesService.cs
- FrameworkPropertyMetadata.cs
- SqlExpressionNullability.cs
- SerializationStore.cs
- ControlBindingsCollection.cs
- DataGridViewCellStateChangedEventArgs.cs
- RelationshipManager.cs
- ProviderMetadataCachedInformation.cs
- ProcessModule.cs
- CodeTypeDeclarationCollection.cs
- WindowsListBox.cs
- DataRecordObjectView.cs
- QilScopedVisitor.cs
- BinaryObjectReader.cs
- TemplateBindingExtensionConverter.cs
- SerializerProvider.cs
- QueryReaderSettings.cs
- KeyNotFoundException.cs
- LoginCancelEventArgs.cs
- WebHttpDispatchOperationSelector.cs
- SqlNodeTypeOperators.cs
- CharacterBuffer.cs
- TableLayoutPanelCellPosition.cs
- ServiceModelEnumValidatorAttribute.cs
- OperationContextScope.cs
- ProfilePropertyMetadata.cs
- ProcessStartInfo.cs
- ConfigurationManagerInternal.cs
- PlatformCulture.cs
- ProgressiveCrcCalculatingStream.cs
- NodeLabelEditEvent.cs
- GridViewUpdatedEventArgs.cs
- XmlSerializerSection.cs
- GridViewSelectEventArgs.cs
- SimpleWebHandlerParser.cs
- MatrixUtil.cs
- InitializingNewItemEventArgs.cs
- DrawingDrawingContext.cs
- UriTemplateLiteralQueryValue.cs
- XmlNodeList.cs
- InlineUIContainer.cs
- BitmapDecoder.cs
- ScrollBar.cs
- MetadataUtilsSmi.cs
- PersonalizationStateInfo.cs
- ProtocolViolationException.cs
- SchemaSetCompiler.cs
- SimpleParser.cs
- MetadataUtilsSmi.cs
- ColumnCollection.cs
- RegexWorker.cs
- nulltextnavigator.cs
- Atom10ItemFormatter.cs
- ResXResourceWriter.cs
- FixedDSBuilder.cs
- UnknownBitmapDecoder.cs
- DynamicMetaObjectBinder.cs
- WindowsFormsHostPropertyMap.cs
- TextSelection.cs
- ControlCommandSet.cs
- UIElementIsland.cs
- HttpCachePolicyBase.cs
- WindowsAuthenticationEventArgs.cs
- Baml2006Reader.cs
- AlphaSortedEnumConverter.cs
- NativeObjectSecurity.cs
- PropertyItemInternal.cs
- EllipticalNodeOperations.cs
- SafeHGlobalHandleCritical.cs
- InvalidOperationException.cs
- TemplateBamlTreeBuilder.cs
- SortedList.cs
- TextFragmentEngine.cs
- StreamSecurityUpgradeInitiator.cs
- AssemblyResolver.cs
- WeakHashtable.cs
- ProfileSettingsCollection.cs
- ResourceProviderFactory.cs
- OutputCacheSettingsSection.cs
- ToolStripDropTargetManager.cs
- SafeEventLogWriteHandle.cs
- OutputScopeManager.cs
- WebPartUserCapability.cs
- LocalizableResourceBuilder.cs