Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / UIAutomation / UIAutomationClient / System / Windows / Automation / ScrollItemPattern.cs / 1 / ScrollItemPattern.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for ScrollItem Pattern // // History: // 05/04/2004 : MKarr Wrote // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation { ////// Represents UI elements in a scrollable area that can be scrolled to. /// #if (INTERNAL_COMPILE) internal class ScrollItemPattern: BasePattern #else public class ScrollItemPattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///Scroll pattern public static readonly AutomationPattern Pattern = ScrollItemPatternIdentifiers.Pattern; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// Scrolls the windows containing this automation element to make this element visible. /// InvalidOperationException should be thrown if item becomes unable to be scrolled. Makes /// no guarantees about where the item will be in the scrolled window. /// public void ScrollIntoView() { UiaCoreApi.ScrollItemPattern_ScrollIntoView(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new ScrollItemPattern(el, hPattern); } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private SafePatternHandle _hPattern; #endregion Private Fields } } // 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: Client-side wrapper for ScrollItem Pattern // // History: // 05/04/2004 : MKarr Wrote // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation { ////// Represents UI elements in a scrollable area that can be scrolled to. /// #if (INTERNAL_COMPILE) internal class ScrollItemPattern: BasePattern #else public class ScrollItemPattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///Scroll pattern public static readonly AutomationPattern Pattern = ScrollItemPatternIdentifiers.Pattern; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// Scrolls the windows containing this automation element to make this element visible. /// InvalidOperationException should be thrown if item becomes unable to be scrolled. Makes /// no guarantees about where the item will be in the scrolled window. /// public void ScrollIntoView() { UiaCoreApi.ScrollItemPattern_ScrollIntoView(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new ScrollItemPattern(el, hPattern); } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private SafePatternHandle _hPattern; #endregion Private Fields } } // 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
- BinHexEncoder.cs
- SingleAnimationUsingKeyFrames.cs
- DigestTraceRecordHelper.cs
- SqlConnectionHelper.cs
- EntitySetBase.cs
- AxHostDesigner.cs
- CollectionViewSource.cs
- CompilerScopeManager.cs
- RadialGradientBrush.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- sqlstateclientmanager.cs
- SoapAttributes.cs
- AnonymousIdentificationModule.cs
- XPathQilFactory.cs
- MetadataProperty.cs
- XPathSingletonIterator.cs
- TableLayoutRowStyleCollection.cs
- ListViewGroupConverter.cs
- BitmapImage.cs
- SettingsPropertyIsReadOnlyException.cs
- PriorityQueue.cs
- WindowsEditBox.cs
- TextRangeEdit.cs
- DataGridViewCellFormattingEventArgs.cs
- WebPartZone.cs
- HandlerFactoryWrapper.cs
- ObjectContext.cs
- BoundField.cs
- Vector3DIndependentAnimationStorage.cs
- ElementProxy.cs
- ParseNumbers.cs
- ApplicationContext.cs
- PeerFlooder.cs
- TextPointerBase.cs
- BmpBitmapEncoder.cs
- StorageEntityTypeMapping.cs
- StickyNoteAnnotations.cs
- Point4D.cs
- Block.cs
- Peer.cs
- TextChangedEventArgs.cs
- DoubleConverter.cs
- RuntimeHandles.cs
- TreeView.cs
- InheritedPropertyDescriptor.cs
- CodeGenerator.cs
- BufferBuilder.cs
- TextFormatterImp.cs
- CommandManager.cs
- PenContext.cs
- RuleSettingsCollection.cs
- ConfigurationValidatorBase.cs
- SQLChars.cs
- PrimitiveSchema.cs
- FindCompletedEventArgs.cs
- SByte.cs
- WsatAdminException.cs
- Span.cs
- httpstaticobjectscollection.cs
- BulletDecorator.cs
- MethodBuilderInstantiation.cs
- DetailsViewDeletedEventArgs.cs
- _SafeNetHandles.cs
- XmlComment.cs
- DataColumnCollection.cs
- TreeViewImageIndexConverter.cs
- _Win32.cs
- WeakRefEnumerator.cs
- WebPartVerb.cs
- ConnectionPointCookie.cs
- OracleCommandBuilder.cs
- EditBehavior.cs
- UnsettableComboBox.cs
- TemplateInstanceAttribute.cs
- recordstatescratchpad.cs
- StructuredTypeEmitter.cs
- LinearGradientBrush.cs
- SendMailErrorEventArgs.cs
- PropertyFilterAttribute.cs
- XmlFormatExtensionPrefixAttribute.cs
- MessageDescription.cs
- HostExecutionContextManager.cs
- ObjectTokenCategory.cs
- UserNamePasswordValidator.cs
- MediaTimeline.cs
- GridViewColumnCollection.cs
- DictionaryEntry.cs
- HttpRuntime.cs
- ModifierKeysValueSerializer.cs
- _ListenerAsyncResult.cs
- TemplateControlParser.cs
- WebServiceEnumData.cs
- ConfigurationUtility.cs
- ConfigXmlCDataSection.cs
- ErrorInfoXmlDocument.cs
- sqlnorm.cs
- DeviceSpecificChoiceCollection.cs
- HierarchicalDataSourceControl.cs
- Help.cs
- IssuanceLicense.cs