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
- NetDataContractSerializer.cs
- IPipelineRuntime.cs
- DataGridColumnHeadersPresenter.cs
- ELinqQueryState.cs
- KeyboardDevice.cs
- QueryContext.cs
- DecimalAnimation.cs
- WinEventWrap.cs
- RuntimeWrappedException.cs
- StateDesignerConnector.cs
- CodeIdentifier.cs
- MenuItemStyle.cs
- Cursors.cs
- VolatileResourceManager.cs
- Message.cs
- XamlPoint3DCollectionSerializer.cs
- WindowsListView.cs
- ToolStripProgressBar.cs
- ChangeNode.cs
- TreeNodeEventArgs.cs
- DataGridCell.cs
- DllNotFoundException.cs
- ManagedIStream.cs
- CrossAppDomainChannel.cs
- TcpAppDomainProtocolHandler.cs
- COM2IProvidePropertyBuilderHandler.cs
- NamespaceCollection.cs
- CompositionTarget.cs
- Decorator.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- LocalizedNameDescriptionPair.cs
- TypeLoadException.cs
- XPathSingletonIterator.cs
- PropertyDescriptor.cs
- TextFormatter.cs
- GeneralTransformGroup.cs
- Triplet.cs
- DataGridTableStyleMappingNameEditor.cs
- ChannelManager.cs
- EventWaitHandleSecurity.cs
- WebMessageEncoderFactory.cs
- WorkItem.cs
- XsltContext.cs
- dataSvcMapFileLoader.cs
- TextParagraph.cs
- MembershipSection.cs
- HttpListener.cs
- StatusBarPanelClickEvent.cs
- CodeGroup.cs
- SqlInternalConnectionSmi.cs
- DrawingCollection.cs
- CornerRadiusConverter.cs
- RelatedImageListAttribute.cs
- Rect.cs
- URLIdentityPermission.cs
- ObjectListFieldCollection.cs
- EntitySqlQueryCacheKey.cs
- FixedStringLookup.cs
- OdbcRowUpdatingEvent.cs
- ValueHandle.cs
- HttpValueCollection.cs
- ValidationResult.cs
- Scene3D.cs
- WebPartEditorCancelVerb.cs
- NavigationPropertyEmitter.cs
- BitmapMetadataBlob.cs
- SHA384Managed.cs
- ExceptionHandlersDesigner.cs
- ListViewCommandEventArgs.cs
- WindowAutomationPeer.cs
- Comparer.cs
- BuildResult.cs
- CriticalFileToken.cs
- UnsafeNativeMethods.cs
- SessionParameter.cs
- RecognizerBase.cs
- FileVersion.cs
- ContentElement.cs
- IndexOutOfRangeException.cs
- DecimalSumAggregationOperator.cs
- HttpListenerPrefixCollection.cs
- XmlBinaryReaderSession.cs
- TransformConverter.cs
- NativeMethods.cs
- NotSupportedException.cs
- BindUriHelper.cs
- SingleTagSectionHandler.cs
- securestring.cs
- ImmComposition.cs
- CheckBoxField.cs
- DataRow.cs
- TraceXPathNavigator.cs
- exports.cs
- WsdlWriter.cs
- EntryPointNotFoundException.cs
- FormParameter.cs
- COM2ExtendedBrowsingHandler.cs
- PointCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- AuthorizationRuleCollection.cs