Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationTypes / System / Windows / Automation / TextPatternIdentifiers.cs / 1 / TextPatternIdentifiers.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Automation Identifiers for Text pattern // // History: // 04/15/2005 : [....] Added // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Security.Permissions; using System.Runtime.InteropServices; using MS.Internal.Automation; namespace System.Windows.Automation { ////// SupportedTextSelection indicates whether the document /// support simple single-span selection, multiple selections, /// or no selection. /// [Flags] [ComVisible(true)] [Guid("3d9e3d8f-bfb0-484f-84ab-93ff4280cbc4")] #if (NO_INTERNAL_COMPILE_BUG1080665) internal enum SupportedTextSelection #else public enum SupportedTextSelection #endif { ///None. None = 0, ///Single. Single = 1, ///Multiple. Multiple = 2, } ////// Purpose: /// The TextPattern object is what you get back when you ask an element for text pattern. /// Example usages: /// It is the Interface that represents text like an edit control. This pretty /// much means any UI elements that contain text. /// #if (INTERNAL_COMPILE) internal static class TextPatternIdentifiers #else public static class TextPatternIdentifiers #endif { //----------------------------------------------------- // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ////// Indicates that a text attribute varies over a range. /// public static readonly object MixedAttributeValue = UiaCoreTypesApi.UiaGetReservedMixedAttributeValue(); #region TextAttribute // IMPORTANT: if you add or remove AutomationTextAttributes be sure to make the corresponding changes in // AutomationComInteropProvider.cs' AutomationConstants struct and AutomationComInteropProvider.InitializeConstants. ///Type of animation applied from AnimationStyle enum. public static readonly AutomationTextAttribute AnimationStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_AnimationStyle_Attribute, "TextPatternIdentifiers.AnimationStyleAttribute"); ///Background color as a 32-bit Win32 COLORREF. public static readonly AutomationTextAttribute BackgroundColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_BackgroundColor_Attribute, "TextPatternIdentifiers.BackgroundColorAttribute"); ///Bullet style from BulletStyle enum. public static readonly AutomationTextAttribute BulletStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_BulletStyle_Attribute, "TextPatternIdentifiers.BulletStyleAttribute"); ///Cap style from CapStyle enum. public static readonly AutomationTextAttribute CapStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_CapStyle_Attribute, "TextPatternIdentifiers.CapStyleAttribute"); ///CultureInfo of the character down to sub-language level, e.g. Swiss French instead of French. See the CultureInfo in /// .NET Framework for more detail on the language code format. Clients should note that there may be many cases where the /// Language of the character defaults to application UI language because many servers do not support language tag and, /// even when supported, authors may not use it. public static readonly AutomationTextAttribute CultureAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_Culture_Attribute, "TextPatternIdentifiers.CultureAttribute"); ///Non-localized string that represents font face in TrueType. Providers can supply their own. /// Examples include �Arial Black� and �Arial Narrow�. public static readonly AutomationTextAttribute FontNameAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_FontName_Attribute, "TextPatternIdentifiers.FontNameAttribute"); ///Point size of the character as a double. public static readonly AutomationTextAttribute FontSizeAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_FontSize_Attribute, "TextPatternIdentifiers.FontSizeAttribute"); ///Thickness of font as an int. This is modeled after the lfWeight field in GDI LOGFONT. For consistency, the following values /// have been adopted from LOGFONT:0=DontCare, 100=Thin, 200=ExtraLight or UltraLight, 300=Light, 400=Normal or Regular, /// 500=Medium, 600=SemiBold or DemiBold, 700=Bold, 800=ExtraBold or UltraBold, and 900=Heavy or Black. public static readonly AutomationTextAttribute FontWeightAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_FontWeight_Attribute, "TextPatternIdentifiers.FontWeightAttribute"); ///Color of the text as a 32-bit Win32 COLORREF. public static readonly AutomationTextAttribute ForegroundColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_ForegroundColor_Attribute, "TextPatternIdentifiers.ForegroundColorAttribute"); ///Horizontal alignment from HorizontalTextAlignment enum. public static readonly AutomationTextAttribute HorizontalTextAlignmentAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_HorizontalTextAlignment_Attribute, "TextPatternIdentifiers.HorizontalTextAlignmentAttribute"); ///First-line indentation in points as a double. public static readonly AutomationTextAttribute IndentationFirstLineAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IndentationFirstLine_Attribute, "TextPatternIdentifiers.IndentationFirstLineAttribute"); ///Leading indentation in points as a double. public static readonly AutomationTextAttribute IndentationLeadingAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IndentationLeading_Attribute, "TextPatternIdentifiers.IndentationLeadingAttribute"); ///Trailing indentation in points as a double. public static readonly AutomationTextAttribute IndentationTrailingAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IndentationTrailing_Attribute, "TextPatternIdentifiers.IndentationTrailingAttribute"); ///Is the text hidden? Boolean. public static readonly AutomationTextAttribute IsHiddenAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsHidden_Attribute, "TextPatternIdentifiers.IsHiddenAttribute"); ///Is the character italicized? Boolean. public static readonly AutomationTextAttribute IsItalicAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsItalic_Attribute, "TextPatternIdentifiers.IsItalicAttribute"); ///Is the character read-only? If a document/file is read-only, but you can still edit it and save it as another file, /// the text inside is considered not read-only. Boolean. public static readonly AutomationTextAttribute IsReadOnlyAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsReadOnly_Attribute, "TextPatternIdentifiers.IsReadOnlyAttribute"); ///Is the character a sub-script? Boolean. public static readonly AutomationTextAttribute IsSubscriptAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsSubscript_Attribute, "TextPatternIdentifiers.IsSubscriptAttribute"); ///Is the character a super-script? Boolean. public static readonly AutomationTextAttribute IsSuperscriptAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_IsSuperscript_Attribute, "TextPatternIdentifiers.IsSuperscriptAttribute"); ///Bottom margin in points as a double. public static readonly AutomationTextAttribute MarginBottomAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_MarginBottom_Attribute, "TextPatternIdentifiers.MarginBottomAttribute"); ///Leading margin in points as a double. public static readonly AutomationTextAttribute MarginLeadingAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_MarginLeading_Attribute, "TextPatternIdentifiers.MarginLeadingAttribute"); ///Top margin in points as a double. public static readonly AutomationTextAttribute MarginTopAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_MarginTop_Attribute, "TextPatternIdentifiers.MarginTopAttribute"); ///Trailing margin in points as a double. public static readonly AutomationTextAttribute MarginTrailingAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_MarginTrailing_Attribute, "TextPatternIdentifiers.MarginTrailingAttribute"); ///Outline style from OutlineStyles enum. public static readonly AutomationTextAttribute OutlineStylesAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_OutlineStyles_Attribute, "TextPatternIdentifiers.OutlineStylesAttribute"); ///Color of the overline as a Win32 COLORREF. This attribute may not be available if the color is /// always the same as the foreground color. public static readonly AutomationTextAttribute OverlineColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_OverlineColor_Attribute, "TextPatternIdentifiers.OverlineColorAttribute"); ///Overline style from TextDecorationLineStyle enum. public static readonly AutomationTextAttribute OverlineStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_OverlineStyle_Attribute, "TextPatternIdentifiers.OverlineStyleAttribute"); ///Color of the strikethrough as a Win32 COLORREF. This attribute may not be available if the color is /// always the same as the foreground color. public static readonly AutomationTextAttribute StrikethroughColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_StrikethroughColor_Attribute, "TextPatternIdentifiers.StrikethroughColorAttribute"); ///Strikethrough style from TextDecorationLineStyle enum. public static readonly AutomationTextAttribute StrikethroughStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_StrikethroughStyle_Attribute, "TextPatternIdentifiers.StrikethroughStyleAttribute"); ///The set of tabs in points relative to the leading margin. Array of double. public static readonly AutomationTextAttribute TabsAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_Tabs_Attribute, "TextPatternIdentifiers.TabsAttribute"); ///Text flow direction from FlowDirection flags enum. public static readonly AutomationTextAttribute TextFlowDirectionsAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_FlowDirections_Attribute, "TextPatternIdentifiers.TextFlowDirectionsAttribute"); ///Color of the underline as a Win32 COLORREF. This attribute may not be available if the color is /// always the same as the foreground color. public static readonly AutomationTextAttribute UnderlineColorAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_UnderlineColor_Attribute, "TextPatternIdentifiers.UnderlineColorAttribute"); ///Underline style from TextDecorationLineStyle enum. public static readonly AutomationTextAttribute UnderlineStyleAttribute = AutomationTextAttribute.Register(AutomationIdentifierGuids.Text_UnderlineStyle_Attribute, "TextPatternIdentifiers.UnderlineStyleAttribute"); #endregion TextAttribute #region Patterns & Events ///Text pattern public static readonly AutomationPattern Pattern = AutomationPattern.Register(AutomationIdentifierGuids.Text_Pattern, "TextPatternIdentifiers.Pattern"); ////// Event ID: TextSelectionChangedEvent /// When: Sent to the event handler when the selection changes. /// public static readonly AutomationEvent TextSelectionChangedEvent = AutomationEvent.Register(AutomationIdentifierGuids.Text_TextSelectionChanged_Event, "TextPatternIdentifiers.TextSelectionChangedEvent"); ////// Event ID: TextChangedEvent /// When: Sent to the event handler when text changes. /// public static readonly AutomationEvent TextChangedEvent = AutomationEvent.Register(AutomationIdentifierGuids.Text_TextChanged_Event, "TextPatternIdentifiers.TextChangedEvent"); #endregion Patterns & Events #endregion Public Constants and Readonly 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
- StateDesignerConnector.cs
- FileDataSource.cs
- TreeViewImageIndexConverter.cs
- BufferBuilder.cs
- LinearGradientBrush.cs
- BeginEvent.cs
- DetailsViewInsertedEventArgs.cs
- RowBinding.cs
- PolyBezierSegment.cs
- RemoteWebConfigurationHostServer.cs
- Metafile.cs
- DbConnectionPoolIdentity.cs
- DetailsViewDeletedEventArgs.cs
- QueryContinueDragEvent.cs
- BaseTemplateBuildProvider.cs
- Configuration.cs
- TranslateTransform3D.cs
- CharEntityEncoderFallback.cs
- PersonalizationStateQuery.cs
- XmlSchemaObject.cs
- SingleConverter.cs
- CodeAttachEventStatement.cs
- PeerNeighborManager.cs
- CFStream.cs
- Mutex.cs
- SizeLimitedCache.cs
- FloaterBaseParagraph.cs
- DataGridPageChangedEventArgs.cs
- CorrelationValidator.cs
- ToolTipService.cs
- LocationReferenceValue.cs
- InfoCardPolicy.cs
- EditorZoneBase.cs
- PolyBezierSegmentFigureLogic.cs
- SelectedDatesCollection.cs
- SynchronizationContextHelper.cs
- PointAnimationBase.cs
- ContainerControl.cs
- InheritedPropertyChangedEventArgs.cs
- ToolBarTray.cs
- CompilationLock.cs
- XMLUtil.cs
- Padding.cs
- HttpRequest.cs
- RequestResizeEvent.cs
- CustomTrackingRecord.cs
- KnownTypes.cs
- FormatterConverter.cs
- SudsWriter.cs
- ComNativeDescriptor.cs
- HtmlContainerControl.cs
- ObjectDataSourceDesigner.cs
- CompilationPass2Task.cs
- SelectorItemAutomationPeer.cs
- DrawingAttributes.cs
- ResourceBinder.cs
- ExpressionBindingCollection.cs
- TrackBarRenderer.cs
- InteropBitmapSource.cs
- XmlSchemaAppInfo.cs
- ProviderException.cs
- AnnotationAdorner.cs
- PathFigureCollectionConverter.cs
- CompiledRegexRunnerFactory.cs
- SQLGuidStorage.cs
- ServerIdentity.cs
- XmlElement.cs
- SmtpMail.cs
- IxmlLineInfo.cs
- CompilerParameters.cs
- TextSearch.cs
- ParsedAttributeCollection.cs
- PageSetupDialog.cs
- DelegatedStream.cs
- PageStatePersister.cs
- ConstraintCollection.cs
- DataGridItem.cs
- Control.cs
- GridView.cs
- VirtualizedContainerService.cs
- StringValueSerializer.cs
- HeaderCollection.cs
- DashStyle.cs
- SqlUnionizer.cs
- FtpWebResponse.cs
- _CacheStreams.cs
- COM2PropertyBuilderUITypeEditor.cs
- TextContainerHelper.cs
- TextSelectionHighlightLayer.cs
- FileEnumerator.cs
- ExtensionSurface.cs
- HashHelper.cs
- HierarchicalDataBoundControl.cs
- RtType.cs
- ButtonRenderer.cs
- TextRunTypographyProperties.cs
- DataRecordInternal.cs
- CreateSequence.cs
- WebResourceAttribute.cs
- OdbcErrorCollection.cs