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
- CellPartitioner.cs
- BulletedList.cs
- DeviceContext.cs
- TCPClient.cs
- CultureInfoConverter.cs
- StylusPoint.cs
- ModifyActivitiesPropertyDescriptor.cs
- ListControlDesigner.cs
- BoolExpr.cs
- ResXBuildProvider.cs
- BaseDataBoundControl.cs
- ColumnResult.cs
- ObsoleteAttribute.cs
- UrlRoutingModule.cs
- EntityContainerEmitter.cs
- ISAPIWorkerRequest.cs
- BasicCellRelation.cs
- Transform.cs
- CustomExpression.cs
- StatusBar.cs
- Simplifier.cs
- CipherData.cs
- HandlerMappingMemo.cs
- SafeNativeMethods.cs
- SingleKeyFrameCollection.cs
- ReadWriteSpinLock.cs
- DragDeltaEventArgs.cs
- DLinqColumnProvider.cs
- ConfigXmlElement.cs
- FilterQueryOptionExpression.cs
- AssertSection.cs
- TextInfo.cs
- DataSourceCache.cs
- ReplyAdapterChannelListener.cs
- ObjectAnimationBase.cs
- SingleSelectRootGridEntry.cs
- TextRangeEditTables.cs
- DataGridViewHitTestInfo.cs
- EllipseGeometry.cs
- SymbolMethod.cs
- CharUnicodeInfo.cs
- BuildResult.cs
- XsltContext.cs
- SQLMoney.cs
- CompiledAction.cs
- WebSysDefaultValueAttribute.cs
- ResumeStoryboard.cs
- FactoryMaker.cs
- TemplateNameScope.cs
- ListDictionaryInternal.cs
- ToolStripItem.cs
- ButtonField.cs
- NameValueConfigurationElement.cs
- DictionaryEntry.cs
- HttpAsyncResult.cs
- OperationBehaviorAttribute.cs
- AppSettingsExpressionBuilder.cs
- OracleDataReader.cs
- XmlSchemaNotation.cs
- FileVersion.cs
- TreeIterators.cs
- XmlSchemaAttribute.cs
- ISAPIWorkerRequest.cs
- ObjectConverter.cs
- SqlTriggerContext.cs
- NavigationProperty.cs
- SafeSecurityHelper.cs
- ErrorFormatterPage.cs
- ConfigXmlWhitespace.cs
- MatrixTransform3D.cs
- ProjectionPruner.cs
- WindowInteropHelper.cs
- path.cs
- DoubleLinkList.cs
- StateRuntime.cs
- ComponentEvent.cs
- EntityDataSourceView.cs
- XmlFileEditor.cs
- PopOutPanel.cs
- FontWeights.cs
- PageSettings.cs
- SizeF.cs
- WebPartPersonalization.cs
- TraceContextRecord.cs
- EdmSchemaAttribute.cs
- DrawingVisualDrawingContext.cs
- QuaternionKeyFrameCollection.cs
- Camera.cs
- CodeChecksumPragma.cs
- CqlIdentifiers.cs
- MediaTimeline.cs
- FixedPageProcessor.cs
- OpenTypeMethods.cs
- BridgeDataReader.cs
- RowBinding.cs
- HttpResponseWrapper.cs
- SelectedDatesCollection.cs
- ValidationPropertyAttribute.cs
- StdValidatorsAndConverters.cs
- ValidationHelpers.cs