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
- SQLInt64Storage.cs
- ImageMap.cs
- AttachedProperty.cs
- DirectoryLocalQuery.cs
- FileSecurity.cs
- BuildProviderCollection.cs
- ModelItemCollection.cs
- PublisherIdentityPermission.cs
- AddInSegmentDirectoryNotFoundException.cs
- GenerateScriptTypeAttribute.cs
- ElementMarkupObject.cs
- EncoderExceptionFallback.cs
- RegexBoyerMoore.cs
- RotateTransform3D.cs
- Condition.cs
- ClientProxyGenerator.cs
- Mutex.cs
- SqlConnectionHelper.cs
- ContractMapping.cs
- DummyDataSource.cs
- UnionExpr.cs
- CellTreeNode.cs
- HexParser.cs
- DesignerPainter.cs
- XmlSchemaImport.cs
- XmlBuffer.cs
- ExternalException.cs
- Certificate.cs
- HandlerFactoryCache.cs
- UrlMappingCollection.cs
- EventLog.cs
- ConstructorBuilder.cs
- SessionEndedEventArgs.cs
- DocumentViewerHelper.cs
- FixedSOMGroup.cs
- DesignerDataRelationship.cs
- RijndaelManaged.cs
- BodyGlyph.cs
- FormViewCommandEventArgs.cs
- DbSetClause.cs
- LocalBuilder.cs
- _ChunkParse.cs
- SecUtil.cs
- BaseInfoTable.cs
- BaseValidatorDesigner.cs
- WebException.cs
- WebPartConnectionsConnectVerb.cs
- PropertyHelper.cs
- MailDefinition.cs
- QueryContinueDragEvent.cs
- basevalidator.cs
- CollectionChange.cs
- GridViewItemAutomationPeer.cs
- GorillaCodec.cs
- DigitShape.cs
- UInt64Converter.cs
- DocumentViewerBaseAutomationPeer.cs
- ChannelAcceptor.cs
- Operator.cs
- MediaPlayer.cs
- AncillaryOps.cs
- ProviderUtil.cs
- UInt32Converter.cs
- SplitterPanel.cs
- SqlUserDefinedAggregateAttribute.cs
- TemplatedMailWebEventProvider.cs
- AssemblyBuilder.cs
- TemplateControlCodeDomTreeGenerator.cs
- InertiaExpansionBehavior.cs
- EventLogHandle.cs
- Win32Native.cs
- CollectionEditorDialog.cs
- FtpRequestCacheValidator.cs
- SafeNativeMethods.cs
- ProcessHostServerConfig.cs
- CodeRemoveEventStatement.cs
- ExternalCalls.cs
- NamedPermissionSet.cs
- DeviceContext2.cs
- HtmlMeta.cs
- CatalogPartChrome.cs
- SendingRequestEventArgs.cs
- Authorization.cs
- HostUtils.cs
- XmlSchemaAll.cs
- ExceptQueryOperator.cs
- ConsumerConnectionPointCollection.cs
- ExpressionCopier.cs
- RectAnimationClockResource.cs
- UniformGrid.cs
- WebPartsPersonalization.cs
- WebPartDisplayModeCollection.cs
- PenThread.cs
- Binding.cs
- EnumBuilder.cs
- ModulesEntry.cs
- MessageVersion.cs
- EasingKeyFrames.cs
- PageVisual.cs
- RegexCode.cs