Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / UIAutomation / 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. //---------------------------------------------------------------------------- // //// 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
- OdbcPermission.cs
- SBCSCodePageEncoding.cs
- UpdatableGenericsFeature.cs
- UriSection.cs
- Renderer.cs
- HttpContextWrapper.cs
- MailSettingsSection.cs
- SrgsElementList.cs
- XmlElementAttribute.cs
- QueryableDataSourceView.cs
- HttpErrorTraceRecord.cs
- ObjectDisposedException.cs
- HtmlFormWrapper.cs
- loginstatus.cs
- ToolZoneDesigner.cs
- SvcMapFileLoader.cs
- TargetPerspective.cs
- WebChannelFactory.cs
- Triplet.cs
- COAUTHIDENTITY.cs
- SqlRecordBuffer.cs
- RoutedPropertyChangedEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- UnsafeNativeMethods.cs
- DataViewSettingCollection.cs
- ConnectionStringSettingsCollection.cs
- SqlProvider.cs
- SqlPersonalizationProvider.cs
- ClientConfigurationSystem.cs
- TransformPattern.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- CodeDOMProvider.cs
- OptimizerPatterns.cs
- StrokeIntersection.cs
- JoinSymbol.cs
- InvokePattern.cs
- ProfilePropertySettings.cs
- TypeElementCollection.cs
- Image.cs
- CaseStatement.cs
- ContentPlaceHolderDesigner.cs
- ComplexBindingPropertiesAttribute.cs
- WorkflowDefinitionContext.cs
- WindowsImpersonationContext.cs
- SharedStatics.cs
- PrintDialogException.cs
- Int32KeyFrameCollection.cs
- SqlClientWrapperSmiStream.cs
- MapPathBasedVirtualPathProvider.cs
- WebPartMenu.cs
- BuildResultCache.cs
- TaskbarItemInfo.cs
- MLangCodePageEncoding.cs
- DocumentApplicationJournalEntry.cs
- DesignSurfaceEvent.cs
- MatrixIndependentAnimationStorage.cs
- ControlCachePolicy.cs
- SQLInt32.cs
- JumpTask.cs
- GACIdentityPermission.cs
- VisualStyleInformation.cs
- _TransmitFileOverlappedAsyncResult.cs
- SerialPinChanges.cs
- XmlILModule.cs
- PerformanceCounterPermissionAttribute.cs
- ReflectPropertyDescriptor.cs
- DataReaderContainer.cs
- ButtonRenderer.cs
- Parameter.cs
- Image.cs
- ExpressionBuilderCollection.cs
- WorkItem.cs
- PageParser.cs
- ResponseStream.cs
- TlsSspiNegotiation.cs
- Html32TextWriter.cs
- GradientBrush.cs
- SqlNamer.cs
- ScrollViewerAutomationPeer.cs
- AssociationSet.cs
- RegexCapture.cs
- EndPoint.cs
- TableLayoutPanelCodeDomSerializer.cs
- RemotingService.cs
- BitmapEffect.cs
- DependencyObject.cs
- InstalledVoice.cs
- XmlSchemaComplexType.cs
- ViewStateException.cs
- XmlAttributes.cs
- SerializationInfo.cs
- AssemblySettingAttributes.cs
- TrailingSpaceComparer.cs
- PolicyLevel.cs
- Int32KeyFrameCollection.cs
- CreateUserWizardStep.cs
- documentation.cs
- ConfigurationStrings.cs
- CodeIndexerExpression.cs
- HtmlForm.cs