Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Design / CompositeDesignerAccessibleObject.cs / 1305376 / CompositeDesignerAccessibleObject.cs
#pragma warning disable 1634, 1691 namespace System.Workflow.ComponentModel.Design { using System; using System.IO; using System.Drawing; using System.CodeDom; using System.Diagnostics; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; using System.ComponentModel; using System.Globalization; using System.Drawing.Design; using System.Drawing.Imaging; using System.Drawing.Drawing2D; using System.Windows.Forms.Design; using System.ComponentModel.Design; using System.Collections.Specialized; using System.ComponentModel.Design.Serialization; using System.Workflow.ComponentModel.Compiler; using System.Workflow.ComponentModel.Serialization; using System.Collections.ObjectModel; using System.Reflection; using System.Workflow.ComponentModel.Design; using System.Runtime.Serialization.Formatters.Binary; // #region Class CompositeDesignerAccessibleObject ////// Represents accessibility object associated with CompositeActivityDesigner /// public class CompositeDesignerAccessibleObject : ActivityDesignerAccessibleObject { ////// Constructor for accessibility object /// /// Designer which is associated with accessibility object public CompositeDesignerAccessibleObject(CompositeActivityDesigner activityDesigner) : base(activityDesigner) { } public override AccessibleStates State { get { AccessibleStates state = base.State; CompositeActivityDesigner compositeDesigner = base.ActivityDesigner as CompositeActivityDesigner; state |= (compositeDesigner.Expanded) ? AccessibleStates.Expanded : AccessibleStates.Collapsed; return state; } } public override AccessibleObject GetChild(int index) { CompositeActivityDesigner compositeDesigner = base.ActivityDesigner as CompositeActivityDesigner; if (index >= 0 && index < compositeDesigner.ContainedDesigners.Count) return compositeDesigner.ContainedDesigners[index].AccessibilityObject; else return base.GetChild(index); } public override int GetChildCount() { CompositeActivityDesigner compositeDesigner = base.ActivityDesigner as CompositeActivityDesigner; return compositeDesigner.ContainedDesigners.Count; } } #endregion } // 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
- DataGridCheckBoxColumn.cs
- TimeoutException.cs
- ScriptResourceHandler.cs
- ListInitExpression.cs
- Viewport3DAutomationPeer.cs
- QilStrConcat.cs
- NullableBoolConverter.cs
- RijndaelManagedTransform.cs
- CryptoConfig.cs
- OdbcCommandBuilder.cs
- HashRepartitionStream.cs
- SignalGate.cs
- CryptoConfig.cs
- Form.cs
- DbConnectionClosed.cs
- TableRow.cs
- UnmanagedHandle.cs
- ToolStrip.cs
- JsonMessageEncoderFactory.cs
- ToolStripInSituService.cs
- HttpRequestTraceRecord.cs
- HtmlInputSubmit.cs
- FileUpload.cs
- HandleCollector.cs
- ClientSideQueueItem.cs
- _ConnectOverlappedAsyncResult.cs
- AvTraceFormat.cs
- CookieHandler.cs
- EdmComplexPropertyAttribute.cs
- Menu.cs
- EntityClassGenerator.cs
- HMAC.cs
- CalendarDataBindingHandler.cs
- smtpconnection.cs
- nulltextnavigator.cs
- CopyNodeSetAction.cs
- ElementProxy.cs
- SchemaConstraints.cs
- DataGridViewTopLeftHeaderCell.cs
- DirectoryInfo.cs
- SweepDirectionValidation.cs
- Storyboard.cs
- StringStorage.cs
- TabletDevice.cs
- AssemblyBuilder.cs
- MouseEventArgs.cs
- ListViewTableCell.cs
- TableLayoutSettings.cs
- BrowserTree.cs
- SpellCheck.cs
- EmptyStringExpandableObjectConverter.cs
- GridToolTip.cs
- RuntimeUtils.cs
- RSAOAEPKeyExchangeFormatter.cs
- ListParaClient.cs
- AstNode.cs
- DataFormats.cs
- ComponentSerializationService.cs
- ApplicationTrust.cs
- TemplateComponentConnector.cs
- GridView.cs
- AsymmetricSignatureFormatter.cs
- ZoneButton.cs
- XmlText.cs
- Table.cs
- NamedServiceModelExtensionCollectionElement.cs
- SslStream.cs
- DataObjectEventArgs.cs
- WindowsToolbar.cs
- ToolStripItemTextRenderEventArgs.cs
- RowBinding.cs
- ValidatorCompatibilityHelper.cs
- DisposableCollectionWrapper.cs
- XmlWrappingWriter.cs
- SqlCommandBuilder.cs
- IdentityHolder.cs
- ResourceProperty.cs
- CachedFontFamily.cs
- BitmapDecoder.cs
- DefaultDiscoveryService.cs
- Matrix.cs
- ArgIterator.cs
- XamlBrushSerializer.cs
- X509PeerCertificateAuthenticationElement.cs
- COM2IDispatchConverter.cs
- FixedSOMTableCell.cs
- DrawItemEvent.cs
- InfiniteTimeSpanConverter.cs
- CommentGlyph.cs
- DocumentDesigner.cs
- HandlerFactoryCache.cs
- Stackframe.cs
- RectangleF.cs
- ConfigurationException.cs
- TransactionFlowBindingElementImporter.cs
- InternalControlCollection.cs
- CodeExporter.cs
- SynchronizationContext.cs
- TemplateKeyConverter.cs
- SmtpException.cs