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
- VarRefManager.cs
- XmlSchemaAny.cs
- WebPartConnection.cs
- ConstraintCollection.cs
- XamlValidatingReader.cs
- FixedBufferAttribute.cs
- PolicyManager.cs
- UncommonField.cs
- CompilerInfo.cs
- AsyncPostBackTrigger.cs
- RemotingConfigParser.cs
- Composition.cs
- PermissionListSet.cs
- MLangCodePageEncoding.cs
- ConfigDefinitionUpdates.cs
- SapiRecoInterop.cs
- OleDbConnectionFactory.cs
- GatewayDefinition.cs
- InvalidWMPVersionException.cs
- SHA256Cng.cs
- Util.cs
- ExceptionValidationRule.cs
- ReflectionTypeLoadException.cs
- TextRenderer.cs
- XmlValidatingReader.cs
- RuntimeEnvironment.cs
- DBConcurrencyException.cs
- Size.cs
- GridViewRowPresenterBase.cs
- ArraySubsetEnumerator.cs
- CredentialManagerDialog.cs
- EntityClientCacheEntry.cs
- ListControl.cs
- ConfigurationSectionGroup.cs
- MessageDescriptionCollection.cs
- ColumnHeader.cs
- EncoderExceptionFallback.cs
- DataGridViewColumnEventArgs.cs
- PartialCachingAttribute.cs
- CreateUserErrorEventArgs.cs
- LogStore.cs
- BitFlagsGenerator.cs
- ViewManager.cs
- DocumentViewerHelper.cs
- PipelineModuleStepContainer.cs
- RowSpanVector.cs
- TransportBindingElementImporter.cs
- XmlEncodedRawTextWriter.cs
- XDeferredAxisSource.cs
- CodeParameterDeclarationExpression.cs
- DateTimeStorage.cs
- UIPermission.cs
- SiteIdentityPermission.cs
- WebPartsSection.cs
- Maps.cs
- Vector3DCollectionValueSerializer.cs
- storepermission.cs
- UniqueContractNameValidationBehavior.cs
- DataGridToolTip.cs
- EdmScalarPropertyAttribute.cs
- ContentFileHelper.cs
- TargetConverter.cs
- Speller.cs
- SiteMembershipCondition.cs
- DivideByZeroException.cs
- IApplicationTrustManager.cs
- CharacterBufferReference.cs
- CapabilitiesState.cs
- HtmlTableRow.cs
- RuntimeConfigurationRecord.cs
- CursorConverter.cs
- GeneralTransform3D.cs
- VirtualPathUtility.cs
- MergePropertyDescriptor.cs
- SecurityKeyIdentifier.cs
- SecurityTokenAuthenticator.cs
- AppliesToBehaviorDecisionTable.cs
- AsyncDataRequest.cs
- BuildResultCache.cs
- streamingZipPartStream.cs
- PageAdapter.cs
- VisualStyleRenderer.cs
- SQLGuidStorage.cs
- UpdateException.cs
- RawStylusSystemGestureInputReport.cs
- SectionInformation.cs
- ListViewItem.cs
- ObservableDictionary.cs
- CodeActivity.cs
- GlyphCache.cs
- StylusPointDescription.cs
- ConfigUtil.cs
- WebBaseEventKeyComparer.cs
- StickyNoteHelper.cs
- DrawToolTipEventArgs.cs
- ToolStripGripRenderEventArgs.cs
- XmlTypeAttribute.cs
- InstanceNormalEvent.cs
- EnumMember.cs
- ScriptingAuthenticationServiceSection.cs