Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- DataContractAttribute.cs
- KeyFrames.cs
- EmptyEnumerable.cs
- _HTTPDateParse.cs
- IUnknownConstantAttribute.cs
- X509Certificate2.cs
- CaseStatement.cs
- SoapAttributes.cs
- RootProjectionNode.cs
- StoreItemCollection.Loader.cs
- WmlTextBoxAdapter.cs
- MessageDesigner.cs
- XmlSchemaNotation.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DataGridViewDataErrorEventArgs.cs
- HelpInfo.cs
- TimeoutException.cs
- TokenBasedSetEnumerator.cs
- followingquery.cs
- FormViewPageEventArgs.cs
- Evaluator.cs
- Token.cs
- TextElementEnumerator.cs
- FrameSecurityDescriptor.cs
- ControlAdapter.cs
- DynamicResourceExtensionConverter.cs
- LineInfo.cs
- GradientStop.cs
- UnicodeEncoding.cs
- ProxyDataContractResolver.cs
- InheritanceRules.cs
- ListViewGroup.cs
- StrongNameMembershipCondition.cs
- DesignerLabelAdapter.cs
- dataprotectionpermission.cs
- Parser.cs
- GroupPartitionExpr.cs
- BamlBinaryWriter.cs
- _AutoWebProxyScriptEngine.cs
- TimeSpanOrInfiniteValidator.cs
- CompositionAdorner.cs
- ConfigurationElementProperty.cs
- PropertyToken.cs
- CultureTableRecord.cs
- HttpPostedFile.cs
- PrivilegeNotHeldException.cs
- BasicViewGenerator.cs
- GlyphsSerializer.cs
- recordstatescratchpad.cs
- TargetConverter.cs
- LinearQuaternionKeyFrame.cs
- HostingPreferredMapPath.cs
- Transform.cs
- MemoryPressure.cs
- XmlNullResolver.cs
- OleCmdHelper.cs
- ModelFunction.cs
- ContextBase.cs
- HeaderedContentControl.cs
- UnSafeCharBuffer.cs
- ConnectionsZoneDesigner.cs
- ListViewHitTestInfo.cs
- SqlProcedureAttribute.cs
- EncryptionUtility.cs
- UnmanagedMemoryStreamWrapper.cs
- DataGridViewLinkColumn.cs
- VerticalAlignConverter.cs
- New.cs
- HierarchicalDataBoundControl.cs
- SimplePropertyEntry.cs
- objectquery_tresulttype.cs
- Documentation.cs
- KeyGestureConverter.cs
- DelegatingTypeDescriptionProvider.cs
- PagedDataSource.cs
- FileLoadException.cs
- TextComposition.cs
- DuplicateWaitObjectException.cs
- ProtectedProviderSettings.cs
- StrokeRenderer.cs
- SiteMapNode.cs
- NativeMethods.cs
- WSHttpBinding.cs
- QueuePathDialog.cs
- WebPartDescription.cs
- EntityViewGenerationAttribute.cs
- CodeNamespaceCollection.cs
- FormViewAutoFormat.cs
- NodeLabelEditEvent.cs
- SqlReferenceCollection.cs
- ConfigurationSection.cs
- RotateTransform.cs
- DataGridTable.cs
- AssertSection.cs
- Stack.cs
- AsymmetricSignatureDeformatter.cs
- TextAnchor.cs
- ScriptResourceAttribute.cs
- ProcessModuleCollection.cs
- OutputCacheModule.cs