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
- Filter.cs
- WebPartMovingEventArgs.cs
- ObjectHandle.cs
- BooleanAnimationUsingKeyFrames.cs
- ContentTextAutomationPeer.cs
- InfoCardUIAgent.cs
- XamlReaderConstants.cs
- Highlights.cs
- TileBrush.cs
- ContextMenuService.cs
- LinkTarget.cs
- DataFieldEditor.cs
- ActivityDefaults.cs
- PathStreamGeometryContext.cs
- AttributeQuery.cs
- WindowsEditBox.cs
- assertwrapper.cs
- ImageCodecInfoPrivate.cs
- DelegateBodyWriter.cs
- TextAnchor.cs
- StreamAsIStream.cs
- HttpModulesSection.cs
- SQLCharsStorage.cs
- ViewUtilities.cs
- ControlPaint.cs
- ProfilePropertyNameValidator.cs
- CodeObject.cs
- BevelBitmapEffect.cs
- DataBoundControlHelper.cs
- Util.cs
- ProvidePropertyAttribute.cs
- InfoCardProofToken.cs
- ListViewInsertionMark.cs
- HttpCacheVaryByContentEncodings.cs
- WeakReference.cs
- CompleteWizardStep.cs
- TextMarkerSource.cs
- EditorPartChrome.cs
- EditorAttribute.cs
- XmlIlVisitor.cs
- View.cs
- UserControlAutomationPeer.cs
- MILUtilities.cs
- InfoCardAsymmetricCrypto.cs
- TextView.cs
- InternalResources.cs
- HttpResponse.cs
- Int16.cs
- SqlBooleanizer.cs
- selecteditemcollection.cs
- Site.cs
- Fonts.cs
- SiteMapNode.cs
- DataColumnMapping.cs
- CallbackBehaviorAttribute.cs
- SqlDependencyListener.cs
- NativeMethodsCLR.cs
- IdentifierService.cs
- ScrollContentPresenter.cs
- updatecommandorderer.cs
- EnumValAlphaComparer.cs
- DataGridViewHeaderCell.cs
- httpapplicationstate.cs
- Path.cs
- PhoneCall.cs
- ToggleButtonAutomationPeer.cs
- DataSourceControlBuilder.cs
- _ChunkParse.cs
- RootCodeDomSerializer.cs
- DataIdProcessor.cs
- ContextMarshalException.cs
- QuestionEventArgs.cs
- Subset.cs
- XamlBrushSerializer.cs
- FigureParaClient.cs
- CommandBinding.cs
- Internal.cs
- XPathScanner.cs
- SystemColors.cs
- DataGridTemplateColumn.cs
- DiagnosticTrace.cs
- DirectionalAction.cs
- SqlBulkCopyColumnMappingCollection.cs
- safesecurityhelperavalon.cs
- WebPartManager.cs
- DoubleMinMaxAggregationOperator.cs
- QuaternionAnimation.cs
- ParsedAttributeCollection.cs
- XmlProcessingInstruction.cs
- Decimal.cs
- XslAst.cs
- TdsParserHelperClasses.cs
- ISessionStateStore.cs
- SQLCharsStorage.cs
- TraceSwitch.cs
- MemberMaps.cs
- FixedHighlight.cs
- ConstrainedDataObject.cs
- RowToFieldTransformer.cs
- ToolStripTextBox.cs