Code:
/ 4.0 / 4.0 / 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. #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
- RegexCompilationInfo.cs
- SystemIPGlobalStatistics.cs
- CompilationPass2TaskInternal.cs
- WebRequestModulesSection.cs
- WebPartManagerDesigner.cs
- DependentList.cs
- Trace.cs
- WebPartsPersonalizationAuthorization.cs
- Transactions.cs
- SqlMethods.cs
- CreateUserWizardStep.cs
- WebEvents.cs
- DescendentsWalkerBase.cs
- ManagedWndProcTracker.cs
- XmlPreloadedResolver.cs
- FixedTextContainer.cs
- SqlDataSourceView.cs
- DrawingContextWalker.cs
- KeyTimeConverter.cs
- SQLSingleStorage.cs
- Point3DValueSerializer.cs
- RowType.cs
- ButtonDesigner.cs
- XPathQilFactory.cs
- LocalIdCollection.cs
- ExtensibleClassFactory.cs
- SymmetricSecurityBindingElement.cs
- HtmlAnchor.cs
- XmlSiteMapProvider.cs
- TypeTypeConverter.cs
- WebPartRestoreVerb.cs
- SignatureResourcePool.cs
- SignedXml.cs
- Utils.cs
- ProfessionalColorTable.cs
- ResXFileRef.cs
- ElementInit.cs
- SchemaElement.cs
- ISO2022Encoding.cs
- ExtensibleClassFactory.cs
- ResourceCollectionInfo.cs
- FontFamilyValueSerializer.cs
- _DigestClient.cs
- MethodSignatureGenerator.cs
- ParameterCollection.cs
- NativeMethods.cs
- RelatedView.cs
- Figure.cs
- AddInContractAttribute.cs
- FontFamily.cs
- ListItemConverter.cs
- SimpleTextLine.cs
- RootContext.cs
- StatusBarPanel.cs
- ProfilePropertyNameValidator.cs
- RequestContext.cs
- IxmlLineInfo.cs
- Transaction.cs
- InheritanceRules.cs
- TimeoutException.cs
- WebPartsSection.cs
- SQLStringStorage.cs
- AccessKeyManager.cs
- Propagator.JoinPropagator.cs
- PolyQuadraticBezierSegment.cs
- _SpnDictionary.cs
- FixedLineResult.cs
- WebPartVerb.cs
- HttpRequest.cs
- MarkupCompilePass1.cs
- MatrixKeyFrameCollection.cs
- BufferedResponseStream.cs
- UniqueConstraint.cs
- DataSourceXmlTextReader.cs
- SmiRecordBuffer.cs
- InfoCardRSACryptoProvider.cs
- PersonalizablePropertyEntry.cs
- MenuItem.cs
- TextEffectResolver.cs
- ParentQuery.cs
- SafePointer.cs
- UnsafePeerToPeerMethods.cs
- FixedFlowMap.cs
- ArrayList.cs
- SafeNativeMethodsMilCoreApi.cs
- RuntimeVariableList.cs
- LambdaCompiler.Expressions.cs
- SoapMessage.cs
- Metadata.cs
- RijndaelManagedTransform.cs
- NativeCompoundFileAPIs.cs
- Operators.cs
- NumberSubstitution.cs
- BaseCodeDomTreeGenerator.cs
- HealthMonitoringSection.cs
- DataGridViewColumnTypeEditor.cs
- ZipIOModeEnforcingStream.cs
- TreeViewDesigner.cs
- BinaryReader.cs
- Monitor.cs