Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / Win32Providers / MS / Internal / AutomationProxies / EmptyElement.cs / 1 / EmptyElement.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Implementation of an empty proxy provider // // History: // alexsn - Created (in DotNet) // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; namespace MS.Internal.AutomationProxies { // Empty proxy provider class EmptyElement : IRawElementProviderSimple { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors protected EmptyElement() { } #endregion Constructors //------------------------------------------------------ // // IRawElementProviderSimple // //----------------------------------------------------- #region Interface IRawElementProviderSimple ProviderOptions IRawElementProviderSimple.ProviderOptions { get { return ProviderOptions.ClientSideProvider; } } object IRawElementProviderSimple.GetPatternProvider(int patternId) { return null; } object IRawElementProviderSimple.GetPropertyValue(int propertyId) { return null; } IRawElementProviderSimple IRawElementProviderSimple.HostRawElementProvider { get { return null; } } #endregion Interface IRawElementProviderSimple } // Empty GridItem cell implementation sealed class EmptyGridItem : EmptyElement, IRawElementProviderSimple, IGridItemProvider { #region Data readonly int _row; readonly int _column; readonly int _rowSpan; readonly int _columnSpan; IRawElementProviderSimple _containingGrid; #endregion Data #region Constructor internal EmptyGridItem(int row, int column, IRawElementProviderSimple containingGrid) { _row = row; _column = column; _rowSpan = 1; _columnSpan = 1; _containingGrid = containingGrid; } #endregion Constructor #region IRawElementProviderSimple object IRawElementProviderSimple.GetPatternProvider(int patternId) { if (patternId == GridItemPattern.Pattern.Id) { return this; } return null; } #endregion IRawElementProviderSimple #region IGridItemProvider int IGridItemProvider.Column { get { return _column; } } int IGridItemProvider.ColumnSpan { get { return _columnSpan; } } IRawElementProviderSimple IGridItemProvider.ContainingGrid { get { return _containingGrid; } } int IGridItemProvider.Row { get { return _row; } } int IGridItemProvider.RowSpan { get { return _rowSpan; } } #endregion IGridItemProvider } } // 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
- XmlSchemaSimpleTypeUnion.cs
- PropertyEmitter.cs
- ValidationEventArgs.cs
- JavaScriptSerializer.cs
- SplitContainer.cs
- OutputCacheSettings.cs
- NotifyCollectionChangedEventArgs.cs
- ErrorEventArgs.cs
- GenericAuthenticationEventArgs.cs
- CellTreeNode.cs
- XPathBinder.cs
- SqlProcedureAttribute.cs
- StreamUpdate.cs
- ContainsRowNumberChecker.cs
- ColumnMapCopier.cs
- DesignerResources.cs
- XamlPathDataSerializer.cs
- ObservableCollection.cs
- CacheForPrimitiveTypes.cs
- EdmToObjectNamespaceMap.cs
- ClientTargetSection.cs
- FormsAuthenticationModule.cs
- FileDialogCustomPlace.cs
- PropertyTab.cs
- Point3DKeyFrameCollection.cs
- SiteIdentityPermission.cs
- TimeZone.cs
- Lease.cs
- Win32SafeHandles.cs
- Perspective.cs
- PolygonHotSpot.cs
- Color.cs
- InstanceNotFoundException.cs
- BmpBitmapEncoder.cs
- _CacheStreams.cs
- SqlTypesSchemaImporter.cs
- InfoCardTraceRecord.cs
- DesignerSerializationVisibilityAttribute.cs
- GeometryHitTestParameters.cs
- TreeViewItemAutomationPeer.cs
- CompiledQuery.cs
- XPathNodeInfoAtom.cs
- DataSourceCollectionBase.cs
- CodeGenerator.cs
- SystemIPGlobalProperties.cs
- DateTimeConverter.cs
- PropertyChangeTracker.cs
- Pen.cs
- BoundPropertyEntry.cs
- SchemaEntity.cs
- AnchoredBlock.cs
- WebErrorHandler.cs
- ScrollChrome.cs
- SchemaTypeEmitter.cs
- DiscoveryOperationContextExtension.cs
- MobileControlPersister.cs
- ViewManager.cs
- MemoryStream.cs
- AxHostDesigner.cs
- SiteMapPathDesigner.cs
- GenerateScriptTypeAttribute.cs
- DefaultBindingPropertyAttribute.cs
- WebPartDisplayModeCollection.cs
- DrawingVisualDrawingContext.cs
- RuntimeHandles.cs
- NegationPusher.cs
- SendActivityValidator.cs
- DrawTreeNodeEventArgs.cs
- ListViewItem.cs
- _NestedMultipleAsyncResult.cs
- SafeHGlobalHandleCritical.cs
- DataGridTable.cs
- Matrix.cs
- SQLInt32.cs
- X509CertificateValidator.cs
- AuthorizationBehavior.cs
- DataGridCellClipboardEventArgs.cs
- XmlBuffer.cs
- ServiceBusyException.cs
- DispatcherFrame.cs
- Visual3DCollection.cs
- _HelperAsyncResults.cs
- PreviewPrintController.cs
- EventWaitHandle.cs
- QilChoice.cs
- EnumerableCollectionView.cs
- SequentialWorkflowRootDesigner.cs
- SqlRetyper.cs
- SessionState.cs
- SocketInformation.cs
- ToolStripContainerActionList.cs
- Bitmap.cs
- StylusPlugInCollection.cs
- SystemColorTracker.cs
- ScrollProperties.cs
- SHA1.cs
- XmlDigitalSignatureProcessor.cs
- _OSSOCK.cs
- ResourceProperty.cs
- DataObjectFieldAttribute.cs