Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / Win32Providers / MS / Internal / AutomationProxies / EmptyElement.cs / 1305600 / 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
- WindowsRichEditRange.cs
- NumberSubstitution.cs
- Relationship.cs
- BehaviorEditorPart.cs
- BitmapFrame.cs
- OutputScopeManager.cs
- ParsedAttributeCollection.cs
- GenericUriParser.cs
- DataGridViewColumnCollection.cs
- BasePattern.cs
- LinqDataSourceHelper.cs
- EventProviderWriter.cs
- SelectionRange.cs
- FormatConvertedBitmap.cs
- SiteMapDataSource.cs
- ThreadExceptionDialog.cs
- ExpandableObjectConverter.cs
- SafeNativeMethods.cs
- ListBoxItemWrapperAutomationPeer.cs
- SQLChars.cs
- CodeAttributeArgumentCollection.cs
- SoapMessage.cs
- _LocalDataStore.cs
- StyleBamlTreeBuilder.cs
- unsafeIndexingFilterStream.cs
- ConfigurationSchemaErrors.cs
- EncoderBestFitFallback.cs
- WsatProxy.cs
- AnimationClockResource.cs
- RegexGroup.cs
- SqlWorkflowInstanceStoreLock.cs
- ExpressionDumper.cs
- ScriptMethodAttribute.cs
- FreezableDefaultValueFactory.cs
- ScriptServiceAttribute.cs
- ListViewItemEventArgs.cs
- PenLineJoinValidation.cs
- IFormattable.cs
- CoTaskMemUnicodeSafeHandle.cs
- IOException.cs
- FrameworkElementAutomationPeer.cs
- CodeSnippetStatement.cs
- XamlSerializerUtil.cs
- ToolBarPanel.cs
- SignedInfo.cs
- AccessorTable.cs
- GPStream.cs
- DataGridRowsPresenter.cs
- RadioButtonFlatAdapter.cs
- sqlcontext.cs
- AccessDataSource.cs
- TagPrefixCollection.cs
- ObjectConverter.cs
- PartitionResolver.cs
- EditableTreeList.cs
- PolyBezierSegmentFigureLogic.cs
- DatagridviewDisplayedBandsData.cs
- AlphaSortedEnumConverter.cs
- RawStylusInput.cs
- CodeMemberEvent.cs
- RelativeSource.cs
- COM2PropertyBuilderUITypeEditor.cs
- SystemSounds.cs
- IntMinMaxAggregationOperator.cs
- StringAnimationBase.cs
- ArrayTypeMismatchException.cs
- ManipulationDelta.cs
- ClientApiGenerator.cs
- DiscoveryService.cs
- DocobjHost.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- HashHelper.cs
- PlatformCulture.cs
- XmlSequenceWriter.cs
- InkCanvasSelection.cs
- Debug.cs
- FullTextLine.cs
- TraceProvider.cs
- XmlILTrace.cs
- DbFunctionCommandTree.cs
- TypeResolver.cs
- OrderedDictionary.cs
- CompilerHelpers.cs
- AttachedProperty.cs
- Attributes.cs
- GB18030Encoding.cs
- TempFiles.cs
- BasicSecurityProfileVersion.cs
- ClockController.cs
- FolderNameEditor.cs
- ListBoxItem.cs
- Vector3DAnimation.cs
- CodeThrowExceptionStatement.cs
- CacheSection.cs
- MissingMethodException.cs
- ADConnectionHelper.cs
- TableRowCollection.cs
- UnsafeNativeMethods.cs
- _SpnDictionary.cs
- DependencyPropertyDescriptor.cs