Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- LazyTextWriterCreator.cs
- HashFinalRequest.cs
- XPathItem.cs
- Application.cs
- RangeValidator.cs
- MultiDataTrigger.cs
- DbParameterCollection.cs
- InitializerFacet.cs
- WindowsScrollBarBits.cs
- SHA512CryptoServiceProvider.cs
- CanonicalFormWriter.cs
- AgileSafeNativeMemoryHandle.cs
- HtmlUtf8RawTextWriter.cs
- WeakReference.cs
- BamlResourceContent.cs
- ConfigPathUtility.cs
- DynamicILGenerator.cs
- WithParamAction.cs
- Brush.cs
- BackgroundFormatInfo.cs
- XmlDownloadManager.cs
- XpsManager.cs
- ObjectManager.cs
- SiteMap.cs
- ListBoxItemWrapperAutomationPeer.cs
- nulltextnavigator.cs
- ArrayConverter.cs
- SynchronizationContext.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- RowToParametersTransformer.cs
- TypeLibConverter.cs
- WSFederationHttpSecurity.cs
- Axis.cs
- XamlPoint3DCollectionSerializer.cs
- RoutedEventArgs.cs
- NotImplementedException.cs
- EnumerableCollectionView.cs
- ClientSettingsProvider.cs
- thaishape.cs
- Events.cs
- CompilerTypeWithParams.cs
- XmlDocumentFragment.cs
- CodeMemberMethod.cs
- ComboBox.cs
- CollectionBuilder.cs
- LinkTarget.cs
- CharAnimationBase.cs
- ListControlDesigner.cs
- FixedTextPointer.cs
- DATA_BLOB.cs
- PointCollectionValueSerializer.cs
- TypePropertyEditor.cs
- ConsoleCancelEventArgs.cs
- Variable.cs
- EditingCoordinator.cs
- DataPagerFieldCommandEventArgs.cs
- SchemaInfo.cs
- SQLInt32Storage.cs
- AccessedThroughPropertyAttribute.cs
- CounterSet.cs
- FeatureSupport.cs
- DataSpaceManager.cs
- XmlDataLoader.cs
- CookieParameter.cs
- ExpressionEditorAttribute.cs
- KeyPressEvent.cs
- ToggleButton.cs
- XmlObjectSerializerReadContextComplexJson.cs
- LogicalExpr.cs
- NodeFunctions.cs
- GestureRecognitionResult.cs
- BindingExpressionBase.cs
- HandlerMappingMemo.cs
- dataobject.cs
- StringAnimationUsingKeyFrames.cs
- X509CertificateValidator.cs
- SettingsProviderCollection.cs
- ProviderIncompatibleException.cs
- MappingSource.cs
- NetworkInformationException.cs
- WebScriptEndpoint.cs
- KeyGestureConverter.cs
- WebPartConnectVerb.cs
- Tuple.cs
- StandardToolWindows.cs
- InvalidDataException.cs
- ObjectSpanRewriter.cs
- CheckBoxField.cs
- CurrentChangingEventManager.cs
- TimeoutException.cs
- LowerCaseStringConverter.cs
- XamlSerializerUtil.cs
- HTTPNotFoundHandler.cs
- HttpException.cs
- KnownTypeDataContractResolver.cs
- DataStreams.cs
- QilStrConcatenator.cs
- AddInSegmentDirectoryNotFoundException.cs
- SqlRowUpdatingEvent.cs
- ZipIOLocalFileDataDescriptor.cs