Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- RoutedEventValueSerializer.cs
- WebServiceFaultDesigner.cs
- ColumnHeader.cs
- HttpDigestClientCredential.cs
- SpeechEvent.cs
- OdbcUtils.cs
- ModelUIElement3D.cs
- WebPartMinimizeVerb.cs
- Regex.cs
- InvalidCardException.cs
- Table.cs
- filewebrequest.cs
- ExpressionBuilderCollection.cs
- BaseParser.cs
- DetailsViewRowCollection.cs
- HtmlListAdapter.cs
- _UriTypeConverter.cs
- UnsafeNativeMethodsCLR.cs
- RelatedPropertyManager.cs
- Lookup.cs
- SmtpNegotiateAuthenticationModule.cs
- ProcessModuleDesigner.cs
- AtomServiceDocumentSerializer.cs
- OpenFileDialog.cs
- TypeConverters.cs
- FontFamily.cs
- CompilerGlobalScopeAttribute.cs
- InfoCardProofToken.cs
- XMLSchema.cs
- DesignerActionUI.cs
- NameSpaceExtractor.cs
- MappingMetadataHelper.cs
- DockAndAnchorLayout.cs
- _SafeNetHandles.cs
- IgnoreSectionHandler.cs
- ScriptResourceHandler.cs
- Assert.cs
- ContainsSearchOperator.cs
- ModulesEntry.cs
- FrugalMap.cs
- VectorKeyFrameCollection.cs
- CompilationUtil.cs
- Opcode.cs
- NameValueFileSectionHandler.cs
- GlobalProxySelection.cs
- OraclePermission.cs
- VectorAnimationUsingKeyFrames.cs
- EntityClientCacheEntry.cs
- ListParaClient.cs
- DataGridViewRow.cs
- HostingEnvironmentException.cs
- Focus.cs
- Helpers.cs
- RemoteWebConfigurationHostServer.cs
- PrintEvent.cs
- AdapterDictionary.cs
- X509Utils.cs
- ParameterCollection.cs
- XmlAutoDetectWriter.cs
- MultiPropertyDescriptorGridEntry.cs
- Evidence.cs
- StringFunctions.cs
- AmbiguousMatchException.cs
- ThreadSafeList.cs
- ErrorFormatter.cs
- PageRanges.cs
- PreloadedPackages.cs
- DataContractFormatAttribute.cs
- QuerySelectOp.cs
- XmlCountingReader.cs
- SuspendDesigner.cs
- BridgeDataReader.cs
- PartialCachingAttribute.cs
- Aggregates.cs
- DefaultProxySection.cs
- EntityDataSourceState.cs
- EncodingTable.cs
- CodeIdentifiers.cs
- ImmComposition.cs
- MenuItemCollection.cs
- FontSource.cs
- CollectionEditVerbManager.cs
- PrimitiveXmlSerializers.cs
- HyperLinkColumn.cs
- NameTable.cs
- ViewEvent.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ButtonRenderer.cs
- MexBindingBindingCollectionElement.cs
- MailMessageEventArgs.cs
- InvalidPrinterException.cs
- HelpInfo.cs
- SqlUnionizer.cs
- AsymmetricKeyExchangeFormatter.cs
- EntityDataSourceEntitySetNameItem.cs
- ObjectDataSource.cs
- FormViewModeEventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- TagPrefixCollection.cs
- Int16.cs