Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / 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 : [....] 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
- ResourceContainer.cs
- XmlUTF8TextReader.cs
- Int32AnimationUsingKeyFrames.cs
- ImageList.cs
- TypeToken.cs
- Graphics.cs
- SoapExtension.cs
- FigureHelper.cs
- WebConfigurationManager.cs
- TextTreeNode.cs
- BitmapEditor.cs
- ByteAnimationBase.cs
- MediaEntryAttribute.cs
- AnnotationService.cs
- PageContent.cs
- EncoderFallback.cs
- InputProviderSite.cs
- Selection.cs
- StyleSheetComponentEditor.cs
- ProtectedProviderSettings.cs
- DependencyObject.cs
- EventLogEntry.cs
- KeyConverter.cs
- SqlServices.cs
- HttpException.cs
- Pen.cs
- LogicalExpr.cs
- SettingsAttributes.cs
- CachedPathData.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- InstanceCollisionException.cs
- FileLogRecord.cs
- SynchronizedDispatch.cs
- StringInfo.cs
- XmlConvert.cs
- TrustManagerPromptUI.cs
- UpDownEvent.cs
- SmiMetaData.cs
- RandomDelaySendsAsyncResult.cs
- UnsafeNativeMethods.cs
- ContextQuery.cs
- HttpCookie.cs
- ComponentChangedEvent.cs
- ECDiffieHellmanCng.cs
- CustomErrorsSection.cs
- AccessibleObject.cs
- RelOps.cs
- AbstractExpressions.cs
- MissingManifestResourceException.cs
- ScrollBarRenderer.cs
- ResourceDescriptionAttribute.cs
- DataGridViewLayoutData.cs
- LinearGradientBrush.cs
- RectangleF.cs
- AttributeUsageAttribute.cs
- QilTargetType.cs
- MetadataArtifactLoaderCompositeResource.cs
- DocumentApplicationJournalEntry.cs
- FontFamilyIdentifier.cs
- MouseWheelEventArgs.cs
- WebPartHeaderCloseVerb.cs
- UnsafeNativeMethods.cs
- HierarchicalDataBoundControl.cs
- ControlTemplate.cs
- WorkerRequest.cs
- SafeHandles.cs
- DesignerActionList.cs
- GZipStream.cs
- CFGGrammar.cs
- Brushes.cs
- ProtocolsConfigurationEntry.cs
- WindowsFormsHostPropertyMap.cs
- WebControl.cs
- XmlSchemaAppInfo.cs
- NotSupportedException.cs
- CalendarDay.cs
- Baml6Assembly.cs
- Duration.cs
- InterleavedZipPartStream.cs
- Matrix3D.cs
- SchemaLookupTable.cs
- CopyCodeAction.cs
- WebBrowserSiteBase.cs
- PlainXmlWriter.cs
- UnsafeCollabNativeMethods.cs
- MenuCommands.cs
- RolePrincipal.cs
- BamlBinaryReader.cs
- CommandExpr.cs
- DataGridViewCellLinkedList.cs
- LightweightCodeGenerator.cs
- WindowsRegion.cs
- FilteredReadOnlyMetadataCollection.cs
- WindowsProgressbar.cs
- IODescriptionAttribute.cs
- XPathExpr.cs
- CookieParameter.cs
- EntityWrapper.cs
- XmlChildNodes.cs
- NamespaceImport.cs