Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / Media / TextOptionsInternal.cs / 1305600 / TextOptionsInternal.cs
//---------------------------------------------------------------------------- // // Copyright(C) Microsoft Corporation. All rights reserved. // // File: TextOptions.cs // // Description: TextOptions groups attached properties that affect the way // WPF displays text such as TextFormattingMode // and TextRenderingMode. // // History: // 05/05/2009 : [....] - created. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Media; using MS.Internal.PresentationCore; namespace MS.Internal.Media { ////// Provide access to text options of element in syntax of TextOptions.xxx = yyy; /// Actual data is stored in the owner. /// [FriendAccessAllowed] // used by Framework internal static class TextOptionsInternal { #region Dependency Properties ///Text hinting property [FriendAccessAllowed] // used by Framework internal static readonly DependencyProperty TextHintingModeProperty = DependencyProperty.RegisterAttached( "TextHintingMode", typeof(TextHintingMode), typeof(TextOptionsInternal), new UIPropertyMetadata(TextHintingMode.Auto), new ValidateValueCallback(System.Windows.Media.ValidateEnums.IsTextHintingModeValid)); #endregion Dependency Properties #region Attached Properties Setters [FriendAccessAllowed] // used by Framework public static void SetTextHintingMode(DependencyObject element, TextHintingMode value) { if (element == null) { throw new ArgumentNullException("element"); } element.SetValue(TextHintingModeProperty, value); } [FriendAccessAllowed] // used by Framework public static TextHintingMode GetTextHintingMode(DependencyObject element) { if (element == null) { throw new ArgumentNullException("element"); } return (TextHintingMode)element.GetValue(TextHintingModeProperty); } #endregion Attached Groperties Getters and Setters } } // 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
- DataObjectMethodAttribute.cs
- ColorTransformHelper.cs
- BuilderInfo.cs
- ActivationServices.cs
- HMACSHA1.cs
- XamlGridLengthSerializer.cs
- CroppedBitmap.cs
- regiisutil.cs
- IIS7WorkerRequest.cs
- FontCacheUtil.cs
- CharAnimationBase.cs
- HtmlEmptyTagControlBuilder.cs
- MediaPlayer.cs
- MeshGeometry3D.cs
- ExtensionElementCollection.cs
- HighlightVisual.cs
- DynamicDocumentPaginator.cs
- CodeLabeledStatement.cs
- ReadOnlyAttribute.cs
- XsdDuration.cs
- GridEntryCollection.cs
- HtmlWindow.cs
- DBProviderConfigurationHandler.cs
- ImageIndexEditor.cs
- PartialCachingControl.cs
- HttpTransportSecurity.cs
- InternalSendMessage.cs
- ApplicationSecurityInfo.cs
- LoginView.cs
- ToolStripPanelRow.cs
- TextDpi.cs
- ConnectionsZone.cs
- ReachPageContentSerializer.cs
- FrameworkElementFactoryMarkupObject.cs
- PersistChildrenAttribute.cs
- SystemMulticastIPAddressInformation.cs
- ButtonField.cs
- ImageMap.cs
- ListViewItem.cs
- ByteRangeDownloader.cs
- SqlXml.cs
- ControlBuilder.cs
- CodeMemberMethod.cs
- NamespaceQuery.cs
- VisualTreeUtils.cs
- GuidelineCollection.cs
- JsonEncodingStreamWrapper.cs
- ScriptResourceInfo.cs
- ContainerUIElement3D.cs
- ModulesEntry.cs
- XPathMessageFilter.cs
- ToolStripItem.cs
- Int32Converter.cs
- StringFormat.cs
- XmlAttributeOverrides.cs
- RegistryPermission.cs
- CqlLexerHelpers.cs
- CodeSnippetExpression.cs
- EndEvent.cs
- LassoSelectionBehavior.cs
- cookieexception.cs
- ListViewItemMouseHoverEvent.cs
- CookieParameter.cs
- RangeBase.cs
- QilReference.cs
- UrlPropertyAttribute.cs
- TemplateBaseAction.cs
- PackageRelationshipCollection.cs
- AVElementHelper.cs
- BitmapEffectInput.cs
- UrlUtility.cs
- TableRowGroupCollection.cs
- PlainXmlSerializer.cs
- GlyphTypeface.cs
- BinHexEncoder.cs
- SerializationAttributes.cs
- DateTime.cs
- SlipBehavior.cs
- VoiceSynthesis.cs
- JoinCqlBlock.cs
- QilFunction.cs
- SqlMethodTransformer.cs
- DataReaderContainer.cs
- SymbolMethod.cs
- DisplayNameAttribute.cs
- XPathDocument.cs
- TransformProviderWrapper.cs
- XmlSchemaSimpleContent.cs
- KeyValuePair.cs
- FileDialogCustomPlace.cs
- ConcurrencyBehavior.cs
- ArraySortHelper.cs
- AVElementHelper.cs
- DataServiceHostFactory.cs
- TextContainerHelper.cs
- UrlMapping.cs
- JobStaple.cs
- SplashScreen.cs
- HelpInfo.cs
- ExpressionConverter.cs