Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CryptoApi.cs
- Ref.cs
- Permission.cs
- FontSourceCollection.cs
- NotifyParentPropertyAttribute.cs
- Compensate.cs
- RawContentTypeMapper.cs
- DPCustomTypeDescriptor.cs
- PropertyChangedEventManager.cs
- CommonGetThemePartSize.cs
- LayoutInformation.cs
- NavigatorInput.cs
- DesignerActionGlyph.cs
- ToolStripItemRenderEventArgs.cs
- ResumeStoryboard.cs
- RepeaterDesigner.cs
- FontStretch.cs
- UnauthorizedAccessException.cs
- ExceptionRoutedEventArgs.cs
- CoreSwitches.cs
- ReadOnlyState.cs
- DataRecordObjectView.cs
- BufferedGraphics.cs
- ContextMenuService.cs
- TextEndOfSegment.cs
- XmlSchemas.cs
- CellCreator.cs
- StorageFunctionMapping.cs
- CustomTypeDescriptor.cs
- ExpressionVisitor.cs
- ValidationError.cs
- ApplicationFileParser.cs
- RoutedEventConverter.cs
- InfoCardSymmetricCrypto.cs
- BuildResult.cs
- WebPartTransformer.cs
- SqlNodeAnnotations.cs
- basevalidator.cs
- TableHeaderCell.cs
- TimelineGroup.cs
- UnauthorizedWebPart.cs
- ArraySortHelper.cs
- Int16Animation.cs
- QueryHandler.cs
- ApplicationInfo.cs
- DataStreams.cs
- MobileControlsSectionHelper.cs
- StateMachineWorkflow.cs
- SEHException.cs
- DataGridViewCellStyleChangedEventArgs.cs
- CanExecuteRoutedEventArgs.cs
- SharedDp.cs
- OpenTypeLayoutCache.cs
- PropertyInformation.cs
- DockAndAnchorLayout.cs
- DataGridViewTextBoxEditingControl.cs
- SqlParameterCollection.cs
- AsyncInvokeContext.cs
- ApplicationCommands.cs
- DirectoryInfo.cs
- ListControl.cs
- SecurityState.cs
- SimpleType.cs
- WindowsComboBox.cs
- ResourceSetExpression.cs
- NameTable.cs
- DynamicMethod.cs
- AccessDataSource.cs
- HideDisabledControlAdapter.cs
- Int32Collection.cs
- ExtendedProperty.cs
- AtomicFile.cs
- ConfigXmlAttribute.cs
- ConstraintEnumerator.cs
- SpoolingTask.cs
- JsonWriter.cs
- ChannelServices.cs
- SingleKeyFrameCollection.cs
- ErrorItem.cs
- CrossSiteScriptingValidation.cs
- Add.cs
- CategoryAttribute.cs
- WebPartCollection.cs
- XmlAutoDetectWriter.cs
- Pen.cs
- CompositeDataBoundControl.cs
- Brush.cs
- NumericUpDown.cs
- XmlSortKey.cs
- Compiler.cs
- Visual.cs
- SizeLimitedCache.cs
- SortedList.cs
- SmiMetaDataProperty.cs
- KeyValuePair.cs
- DecimalConverter.cs
- PackWebRequest.cs
- CodeStatement.cs
- KeyboardEventArgs.cs
- IssuanceLicense.cs