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
- VisualStyleRenderer.cs
- MimePart.cs
- PreservationFileWriter.cs
- DESCryptoServiceProvider.cs
- NumberSubstitution.cs
- ActivityLocationReferenceEnvironment.cs
- FixedSOMPageConstructor.cs
- EpmSyndicationContentDeSerializer.cs
- SortDescription.cs
- DBCommand.cs
- UrlMapping.cs
- RuntimeHelpers.cs
- Parameter.cs
- EventData.cs
- HtmlShimManager.cs
- SecurityDescriptor.cs
- ComEventsInfo.cs
- GeneralTransform3D.cs
- SharedDp.cs
- ControlBuilderAttribute.cs
- UInt32Storage.cs
- ControlUtil.cs
- Utility.cs
- UInt32Converter.cs
- NodeLabelEditEvent.cs
- ComplexLine.cs
- X509ChainElement.cs
- QueryExpr.cs
- PropertyMap.cs
- StructuredCompositeActivityDesigner.cs
- DecoderNLS.cs
- ToggleButton.cs
- FormCollection.cs
- SyndicationDeserializer.cs
- ToggleProviderWrapper.cs
- ShimAsPublicXamlType.cs
- AmbientEnvironment.cs
- BinaryObjectReader.cs
- MailDefinitionBodyFileNameEditor.cs
- SettingsProperty.cs
- UnauthorizedAccessException.cs
- ViewGenerator.cs
- ChangeTracker.cs
- XPathDescendantIterator.cs
- DependencyObjectCodeDomSerializer.cs
- RtfControls.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SortDescription.cs
- Codec.cs
- SqlDataSourceTableQuery.cs
- WebPartAddingEventArgs.cs
- RecordsAffectedEventArgs.cs
- DomNameTable.cs
- TypeElementCollection.cs
- WebException.cs
- XmlBoundElement.cs
- BinaryQueryOperator.cs
- ControlPropertyNameConverter.cs
- ButtonBase.cs
- CompilationRelaxations.cs
- CollectionEditor.cs
- MethodMessage.cs
- BindingNavigatorDesigner.cs
- PhysicalAddress.cs
- XmlAttributeProperties.cs
- CodeChecksumPragma.cs
- WebServiceData.cs
- XmlLangPropertyAttribute.cs
- _ShellExpression.cs
- TdsParser.cs
- SessionStateContainer.cs
- GeneralTransform3DGroup.cs
- EnvironmentPermission.cs
- BitmapEffectDrawing.cs
- DataGridRow.cs
- ScriptRegistrationManager.cs
- XamlBuildTaskServices.cs
- SizeAnimationBase.cs
- ThousandthOfEmRealPoints.cs
- ArcSegment.cs
- ValueUnavailableException.cs
- Composition.cs
- SchemaDeclBase.cs
- ReferenceEqualityComparer.cs
- SubtreeProcessor.cs
- StreamInfo.cs
- EdmItemCollection.cs
- TransactionalPackage.cs
- Rfc2898DeriveBytes.cs
- MarshalDirectiveException.cs
- FillErrorEventArgs.cs
- FrameworkElementAutomationPeer.cs
- _ListenerAsyncResult.cs
- BitmapDownload.cs
- SHA256.cs
- BulletChrome.cs
- FieldBuilder.cs
- HtmlTable.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DataGridViewLinkCell.cs