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
- SynchronizedInputAdaptor.cs
- CodeRemoveEventStatement.cs
- XmlCountingReader.cs
- FileUtil.cs
- FormParameter.cs
- AssemblyName.cs
- CodeAttributeArgument.cs
- TemplateControlBuildProvider.cs
- SmtpCommands.cs
- CombinedGeometry.cs
- SerializationUtilities.cs
- ReliableRequestSessionChannel.cs
- DataPointer.cs
- Translator.cs
- RangeContentEnumerator.cs
- EntityKeyElement.cs
- SubMenuStyle.cs
- WebBrowserDocumentCompletedEventHandler.cs
- MenuItemStyleCollection.cs
- StaticSiteMapProvider.cs
- TitleStyle.cs
- ProvidersHelper.cs
- RuntimeHelpers.cs
- IxmlLineInfo.cs
- IPipelineRuntime.cs
- DesignerDataTable.cs
- ExpandedProjectionNode.cs
- GeneralTransform2DTo3DTo2D.cs
- LogEntrySerializer.cs
- MatrixCamera.cs
- PersonalizationAdministration.cs
- MaskedTextBoxDesigner.cs
- CompoundFileStorageReference.cs
- AssemblyNameUtility.cs
- PermissionRequestEvidence.cs
- ClockController.cs
- OptionalColumn.cs
- ExpressionVisitorHelpers.cs
- WebSysDescriptionAttribute.cs
- ADConnectionHelper.cs
- SecurityException.cs
- CfgSemanticTag.cs
- TypeDefinition.cs
- BulletDecorator.cs
- LinqDataSource.cs
- CapabilitiesRule.cs
- PasswordBox.cs
- GridViewRowPresenterBase.cs
- XPathParser.cs
- DocumentSequence.cs
- UInt16Storage.cs
- ToolStripOverflow.cs
- SoundPlayerAction.cs
- Point.cs
- DetailsViewDesigner.cs
- Keyboard.cs
- SequentialUshortCollection.cs
- StatusBarPanel.cs
- AsmxEndpointPickerExtension.cs
- BamlRecordHelper.cs
- DataTableMappingCollection.cs
- SqlTrackingQuery.cs
- ListSortDescription.cs
- TransformerInfoCollection.cs
- HtmlInputFile.cs
- _Rfc2616CacheValidators.cs
- Image.cs
- InputBinder.cs
- SystemEvents.cs
- FacetEnabledSchemaElement.cs
- DataError.cs
- VersionConverter.cs
- DataGridTextBoxColumn.cs
- ExpressionBuilder.cs
- ReachSerializableProperties.cs
- CatalogPartChrome.cs
- BevelBitmapEffect.cs
- TextEvent.cs
- NamespaceInfo.cs
- DataTableMapping.cs
- SamlAudienceRestrictionCondition.cs
- AccessorTable.cs
- BindingOperations.cs
- NetworkInformationException.cs
- FindResponse.cs
- Base64Encoder.cs
- WindowsHyperlink.cs
- OutputCacheModule.cs
- Int32Rect.cs
- SamlAuthorizationDecisionStatement.cs
- MailSettingsSection.cs
- FloatUtil.cs
- PropertyConverter.cs
- MultiViewDesigner.cs
- PenLineJoinValidation.cs
- ImmComposition.cs
- TranslateTransform.cs
- EntityType.cs
- DataTransferEventArgs.cs
- ValidatingReaderNodeData.cs