Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / System / Windows / Automation / ScrollItemPattern.cs / 1305600 / 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
- TimelineGroup.cs
- FloatUtil.cs
- SafeSecurityHandles.cs
- DataColumnPropertyDescriptor.cs
- TextChange.cs
- TakeQueryOptionExpression.cs
- SystemNetworkInterface.cs
- SerializationObjectManager.cs
- hresults.cs
- Pair.cs
- ColumnHeaderCollectionEditor.cs
- PointIndependentAnimationStorage.cs
- DbConnectionPoolCounters.cs
- PerformanceCounter.cs
- ObjectDataSourceMethodEventArgs.cs
- UserInitiatedRoutedEventPermission.cs
- ColorConverter.cs
- EmptyEnumerator.cs
- XmlDataCollection.cs
- CssStyleCollection.cs
- RemotingServices.cs
- DefaultPropertyAttribute.cs
- FormsAuthenticationUserCollection.cs
- SchemaEntity.cs
- RoutedEventArgs.cs
- DesignerTextBoxAdapter.cs
- PersistenceTypeAttribute.cs
- ModelUIElement3D.cs
- XmlNodeComparer.cs
- RegisteredScript.cs
- SingleKeyFrameCollection.cs
- XamlParser.cs
- XmlUrlResolver.cs
- WorkflowRuntimeElement.cs
- ObjectListCommandEventArgs.cs
- CellConstantDomain.cs
- CodeExpressionCollection.cs
- XdrBuilder.cs
- CodeCompiler.cs
- EventLogger.cs
- CommandPlan.cs
- SystemDropShadowChrome.cs
- CollectionViewSource.cs
- WebServiceEnumData.cs
- RectValueSerializer.cs
- DataControlCommands.cs
- TablePatternIdentifiers.cs
- PointConverter.cs
- PlainXmlSerializer.cs
- WebPartCatalogCloseVerb.cs
- FormsAuthenticationCredentials.cs
- SequenceFullException.cs
- MouseEventArgs.cs
- CryptoKeySecurity.cs
- ObjectSpanRewriter.cs
- DataColumnPropertyDescriptor.cs
- StackOverflowException.cs
- HostedAspNetEnvironment.cs
- PagedControl.cs
- XmlSchemas.cs
- MultiPropertyDescriptorGridEntry.cs
- DataGridViewRow.cs
- GreenMethods.cs
- WebConfigManager.cs
- CodeSubDirectory.cs
- figurelength.cs
- ActivityDesignerResources.cs
- SpeechDetectedEventArgs.cs
- DataGridHyperlinkColumn.cs
- DeclarationUpdate.cs
- ScriptingRoleServiceSection.cs
- Pair.cs
- SecurityUtils.cs
- ResXBuildProvider.cs
- HealthMonitoringSectionHelper.cs
- LambdaCompiler.Binary.cs
- RawTextInputReport.cs
- GiveFeedbackEvent.cs
- PropertyFilterAttribute.cs
- InternalCache.cs
- FixedDSBuilder.cs
- UiaCoreApi.cs
- XmlUtilWriter.cs
- XmlIncludeAttribute.cs
- ReflectionPermission.cs
- CollectionView.cs
- AutoResetEvent.cs
- MarkupExtensionReturnTypeAttribute.cs
- ElementMarkupObject.cs
- ButtonFieldBase.cs
- SymbolType.cs
- TextCompositionManager.cs
- DiscreteKeyFrames.cs
- CacheDict.cs
- XmlSchemaAnnotation.cs
- ChannelManager.cs
- MdiWindowListItemConverter.cs
- HealthMonitoringSection.cs
- Stylus.cs
- XMLUtil.cs