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
- WebPartTransformerCollection.cs
- Persist.cs
- PrincipalPermissionMode.cs
- Matrix3DValueSerializer.cs
- ExpandedProjectionNode.cs
- TypefaceCollection.cs
- AutomationProperty.cs
- ProfessionalColors.cs
- TerminatorSinks.cs
- DbMetaDataColumnNames.cs
- Size3D.cs
- Transform3DCollection.cs
- RelationshipWrapper.cs
- TypeValidationEventArgs.cs
- KeyInterop.cs
- LineSegment.cs
- ElementsClipboardData.cs
- EntityDataSourceContextDisposingEventArgs.cs
- QueryConverter.cs
- StringTraceRecord.cs
- IntPtr.cs
- XhtmlBasicImageAdapter.cs
- ObjectFullSpanRewriter.cs
- HTMLTextWriter.cs
- ISCIIEncoding.cs
- Converter.cs
- XmlReflectionImporter.cs
- webeventbuffer.cs
- SafeBitVector32.cs
- ListMarkerLine.cs
- TextServicesHost.cs
- ServiceHostingEnvironment.cs
- EventBuilder.cs
- FormatConvertedBitmap.cs
- ListContractAdapter.cs
- ErrorTableItemStyle.cs
- NativeMethods.cs
- ProtectedProviderSettings.cs
- TreeViewItemAutomationPeer.cs
- ObjectDataSourceEventArgs.cs
- MarkerProperties.cs
- SequenceDesignerAccessibleObject.cs
- XmlMtomReader.cs
- CommonRemoteMemoryBlock.cs
- Page.cs
- XmlSchemaChoice.cs
- BooleanSwitch.cs
- CreateParams.cs
- MethodToken.cs
- StorageSetMapping.cs
- PerformanceCounterPermissionEntry.cs
- PropertyIDSet.cs
- ListViewSortEventArgs.cs
- XmlSchemaAppInfo.cs
- HttpListenerContext.cs
- LinearGradientBrush.cs
- SafeProcessHandle.cs
- ContentPresenter.cs
- TemplateDefinition.cs
- ChangeDirector.cs
- XslTransform.cs
- StylusEditingBehavior.cs
- XmlLoader.cs
- ChannelDispatcherCollection.cs
- FontSourceCollection.cs
- ThrowHelper.cs
- TrackBarRenderer.cs
- PopupEventArgs.cs
- SplitContainer.cs
- ListBoxItemAutomationPeer.cs
- Storyboard.cs
- XhtmlStyleClass.cs
- NativeMethods.cs
- MatrixCamera.cs
- TransactionTraceIdentifier.cs
- ExpressionWriter.cs
- RelatedEnd.cs
- TransformConverter.cs
- ClientRoleProvider.cs
- RegexMatch.cs
- BinaryObjectInfo.cs
- TraceRecord.cs
- ClientApiGenerator.cs
- GridViewEditEventArgs.cs
- SafeSerializationManager.cs
- TransformCollection.cs
- DBAsyncResult.cs
- EventListener.cs
- CannotUnloadAppDomainException.cs
- ContentHostHelper.cs
- DBAsyncResult.cs
- Track.cs
- AuthenticationException.cs
- MediaElement.cs
- SqlDeflator.cs
- Message.cs
- Condition.cs
- MultiplexingDispatchMessageFormatter.cs
- DataControlFieldHeaderCell.cs
- MultiDataTrigger.cs