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
- PartitionedStreamMerger.cs
- AliasGenerator.cs
- TemplateField.cs
- SchemaImporter.cs
- SafeNativeMethods.cs
- StrokeCollection2.cs
- QueryResult.cs
- DataObject.cs
- SslStreamSecurityUpgradeProvider.cs
- ListenerPerfCounters.cs
- PropertyEmitter.cs
- LockedBorderGlyph.cs
- SmtpNtlmAuthenticationModule.cs
- DrawTreeNodeEventArgs.cs
- ReachDocumentPageSerializerAsync.cs
- FormViewDesigner.cs
- StdRegProviderWrapper.cs
- DBSchemaRow.cs
- GroupBoxRenderer.cs
- DivideByZeroException.cs
- ReadOnlyKeyedCollection.cs
- SchemaSetCompiler.cs
- ListControl.cs
- SystemUnicastIPAddressInformation.cs
- VSWCFServiceContractGenerator.cs
- TagPrefixAttribute.cs
- TreeNodeClickEventArgs.cs
- UrlEncodedParameterWriter.cs
- EnvelopedPkcs7.cs
- ParserStack.cs
- ExceptionCollection.cs
- SHA256CryptoServiceProvider.cs
- BindingEntityInfo.cs
- PropertyPushdownHelper.cs
- NameValuePermission.cs
- UniformGrid.cs
- MinimizableAttributeTypeConverter.cs
- ResourceBinder.cs
- ReflectionServiceProvider.cs
- DerivedKeySecurityToken.cs
- Tracking.cs
- RegularExpressionValidator.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Vector3dCollection.cs
- SpotLight.cs
- DesignSurfaceCollection.cs
- ToolStripManager.cs
- XPathNavigatorReader.cs
- DataList.cs
- ViewManager.cs
- XmlQualifiedNameTest.cs
- ZoneMembershipCondition.cs
- InvariantComparer.cs
- SQLInt32Storage.cs
- ISO2022Encoding.cs
- PersonalizablePropertyEntry.cs
- DictionaryMarkupSerializer.cs
- followingsibling.cs
- BitmapEffect.cs
- DiscoveryClientChannelFactory.cs
- RadioButton.cs
- ImageList.cs
- CommandHelper.cs
- BaseValidator.cs
- PaperSize.cs
- DataGridHeaderBorder.cs
- SchemaType.cs
- TextEffect.cs
- configsystem.cs
- ExtendedPropertyDescriptor.cs
- FixedSOMFixedBlock.cs
- XmlStringTable.cs
- BooleanToVisibilityConverter.cs
- StringFreezingAttribute.cs
- DeploymentSection.cs
- DataMember.cs
- GeneralTransformCollection.cs
- EventHandlerService.cs
- GACMembershipCondition.cs
- QueryOutputWriter.cs
- DataPagerFieldCollection.cs
- FormViewDeletedEventArgs.cs
- _HeaderInfoTable.cs
- CuspData.cs
- OraclePermissionAttribute.cs
- WindowsStreamSecurityBindingElement.cs
- ContentType.cs
- EntityRecordInfo.cs
- TreeNodeBinding.cs
- NamespaceQuery.cs
- XpsResourceDictionary.cs
- NameTable.cs
- oledbmetadatacollectionnames.cs
- ClientOptions.cs
- SqlUDTStorage.cs
- Menu.cs
- TextEditorParagraphs.cs
- ExpressionEditorAttribute.cs
- TemplateEditingService.cs
- StorageBasedPackageProperties.cs