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
- LinqDataSourceSelectEventArgs.cs
- InfoCardSymmetricCrypto.cs
- AppSettingsReader.cs
- WebAdminConfigurationHelper.cs
- SymmetricAlgorithm.cs
- RawStylusInputCustomData.cs
- WorkflowOperationFault.cs
- ContextInformation.cs
- MessageUtil.cs
- RepeatBehaviorConverter.cs
- DoubleLink.cs
- AQNBuilder.cs
- ThicknessAnimation.cs
- SwitchLevelAttribute.cs
- NamedElement.cs
- CultureTable.cs
- Model3DGroup.cs
- DesignerActionList.cs
- DependencyPropertyConverter.cs
- DataAdapter.cs
- FramingDecoders.cs
- GridItemProviderWrapper.cs
- XPathNodeInfoAtom.cs
- FrameworkObject.cs
- CriticalHandle.cs
- RadioButtonPopupAdapter.cs
- CollectionEditor.cs
- IIS7WorkerRequest.cs
- CommonGetThemePartSize.cs
- DataGridCellsPresenter.cs
- CloudCollection.cs
- ErrorStyle.cs
- TokenBasedSet.cs
- CssClassPropertyAttribute.cs
- FormatterServices.cs
- DBDataPermission.cs
- Codec.cs
- ReadOnlyCollectionBuilder.cs
- DesignerSerializationManager.cs
- VirtualPathProvider.cs
- ListViewHitTestInfo.cs
- TcpPortSharing.cs
- Parameter.cs
- DoubleAnimation.cs
- ParenthesizePropertyNameAttribute.cs
- WindowsStatusBar.cs
- CommunicationObjectManager.cs
- XsltQilFactory.cs
- NullableDecimalAverageAggregationOperator.cs
- SystemGatewayIPAddressInformation.cs
- CrossContextChannel.cs
- TrackingMemoryStream.cs
- InlineUIContainer.cs
- MarkupProperty.cs
- XmlSchemaComplexContentRestriction.cs
- SchemaNamespaceManager.cs
- XmlSchemaInclude.cs
- TagMapInfo.cs
- TcpAppDomainProtocolHandler.cs
- SqlCrossApplyToCrossJoin.cs
- LineBreak.cs
- DbModificationCommandTree.cs
- StopStoryboard.cs
- UserControlBuildProvider.cs
- DataGridColumnsPage.cs
- PackageDigitalSignatureManager.cs
- PageBreakRecord.cs
- XamlRtfConverter.cs
- TypeGeneratedEventArgs.cs
- TdsValueSetter.cs
- HttpRawResponse.cs
- GridViewColumn.cs
- WebPartTransformer.cs
- CorePropertiesFilter.cs
- DropShadowBitmapEffect.cs
- XPathDocument.cs
- XamlSerializerUtil.cs
- X500Name.cs
- Constants.cs
- TextRangeAdaptor.cs
- HttpRequestCacheValidator.cs
- MessageDecoder.cs
- AddInControllerImpl.cs
- DbParameterCollectionHelper.cs
- WebBrowserNavigatedEventHandler.cs
- SqlNotificationEventArgs.cs
- ParserOptions.cs
- DataStorage.cs
- ExpressionPrinter.cs
- IriParsingElement.cs
- TransformGroup.cs
- TextRunProperties.cs
- StrictAndMessageFilter.cs
- FilterUserControlBase.cs
- PersonalizationStateInfoCollection.cs
- NavigationService.cs
- FontStretches.cs
- StateFinalizationActivity.cs
- DuplicateWaitObjectException.cs
- MailBnfHelper.cs