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
- EditorPartCollection.cs
- __Filters.cs
- OpCopier.cs
- DataRowIndexBuffer.cs
- ObjectItemCollection.cs
- TextChangedEventArgs.cs
- Environment.cs
- EntityDataReader.cs
- ChannelServices.cs
- PlanCompilerUtil.cs
- FormViewCommandEventArgs.cs
- ViewPort3D.cs
- CodeGen.cs
- DbParameterHelper.cs
- StringUtil.cs
- WindowShowOrOpenTracker.cs
- XmlSchemaComplexContent.cs
- HandledEventArgs.cs
- UnsafeNativeMethods.cs
- CodeNamespaceImport.cs
- AppDomainUnloadedException.cs
- SpecialTypeDataContract.cs
- VirtualDirectoryMapping.cs
- WebPartChrome.cs
- LogSwitch.cs
- XmlRawWriterWrapper.cs
- AudioException.cs
- NumericUpDown.cs
- WriteableBitmap.cs
- TextElementAutomationPeer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PackWebResponse.cs
- OutgoingWebResponseContext.cs
- IdentityNotMappedException.cs
- BufferAllocator.cs
- IdnElement.cs
- GroupBox.cs
- HttpHandlerAction.cs
- PropertyEntry.cs
- HttpWriter.cs
- UriScheme.cs
- PartialList.cs
- ActivationArguments.cs
- ProviderUtil.cs
- Range.cs
- Preprocessor.cs
- RadioButtonFlatAdapter.cs
- FormatException.cs
- ContentType.cs
- ObjectQueryProvider.cs
- AsymmetricKeyExchangeFormatter.cs
- TypeDescriptorContext.cs
- PackagePart.cs
- ObjectQuery.cs
- ControlCollection.cs
- DefaultHttpHandler.cs
- BmpBitmapDecoder.cs
- FileNotFoundException.cs
- FileLevelControlBuilderAttribute.cs
- EntityConnectionStringBuilder.cs
- MaskDescriptors.cs
- TransactionScope.cs
- Clause.cs
- RectangleConverter.cs
- MemoryRecordBuffer.cs
- PropertyChangeTracker.cs
- GridView.cs
- RequiredAttributeAttribute.cs
- DefinitionBase.cs
- Rotation3D.cs
- TdsRecordBufferSetter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SystemNetworkInterface.cs
- DesignerVerbCollection.cs
- LeafCellTreeNode.cs
- SystemParameters.cs
- LookupNode.cs
- DocumentEventArgs.cs
- MissingMemberException.cs
- SQLInt64.cs
- MtomMessageEncodingBindingElement.cs
- BinaryUtilClasses.cs
- XmlDictionary.cs
- MediaContextNotificationWindow.cs
- NavigationPropertyEmitter.cs
- ToolBar.cs
- CustomTokenProvider.cs
- TextParentUndoUnit.cs
- WindowsIdentity.cs
- FixedSOMTableRow.cs
- Transform.cs
- DataGridViewTextBoxEditingControl.cs
- DurableInstancingOptions.cs
- RelationshipSet.cs
- XmlDataImplementation.cs
- FeatureManager.cs
- SafeCertificateStore.cs
- Point3D.cs
- HasRunnableWorkflowEvent.cs
- Timer.cs