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
- WebBrowserEvent.cs
- SystemFonts.cs
- EnumValidator.cs
- QilInvoke.cs
- XmlStreamStore.cs
- SqlGatherConsumedAliases.cs
- ResourceSet.cs
- PropertyDescriptorComparer.cs
- SimplePropertyEntry.cs
- MembershipValidatePasswordEventArgs.cs
- SelectorItemAutomationPeer.cs
- IfAction.cs
- RepeatInfo.cs
- BindingGroup.cs
- UriTemplateLiteralQueryValue.cs
- StylusEventArgs.cs
- Roles.cs
- DragStartedEventArgs.cs
- ListBindingConverter.cs
- XmlQualifiedNameTest.cs
- SchemaCollectionPreprocessor.cs
- MethodAccessException.cs
- EditCommandColumn.cs
- ActivityCodeGenerator.cs
- SqlWebEventProvider.cs
- LinqDataSourceInsertEventArgs.cs
- DesignerAdapterAttribute.cs
- GenericTypeParameterBuilder.cs
- BitmapMetadataEnumerator.cs
- SessionParameter.cs
- DesignerTransaction.cs
- DataObjectPastingEventArgs.cs
- _Rfc2616CacheValidators.cs
- rsa.cs
- TabletDevice.cs
- ConnectionManagementElementCollection.cs
- GridPattern.cs
- ObjectPropertyMapping.cs
- WindowsListViewItem.cs
- GradientBrush.cs
- Schema.cs
- X509Certificate2Collection.cs
- InvokeProviderWrapper.cs
- ScrollProperties.cs
- SHA384.cs
- DocumentCollection.cs
- SiteMapProvider.cs
- PackagePartCollection.cs
- SoapCodeExporter.cs
- CalendarBlackoutDatesCollection.cs
- CreateUserErrorEventArgs.cs
- SHA384Managed.cs
- SendOperation.cs
- ViewStateException.cs
- TrackingMemoryStream.cs
- GridViewHeaderRowPresenter.cs
- CompositionAdorner.cs
- VScrollProperties.cs
- sqlnorm.cs
- HandlerBase.cs
- RangeValidator.cs
- ColumnReorderedEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- ByteAnimationBase.cs
- XhtmlBasicSelectionListAdapter.cs
- MailHeaderInfo.cs
- TraceHandlerErrorFormatter.cs
- Environment.cs
- WebServiceParameterData.cs
- ReceiveMessageContent.cs
- MethodBody.cs
- ParentUndoUnit.cs
- WebPartsPersonalizationAuthorization.cs
- LZCodec.cs
- ClusterSafeNativeMethods.cs
- AddressHeader.cs
- DefaultTypeArgumentAttribute.cs
- NavigationPropertyEmitter.cs
- RenderingBiasValidation.cs
- IntegerValidator.cs
- PageThemeParser.cs
- ApplicationServicesHostFactory.cs
- OleDbTransaction.cs
- GlyphInfoList.cs
- MultiSelectRootGridEntry.cs
- AnnotationResourceCollection.cs
- BitSet.cs
- ParseElementCollection.cs
- InputProcessorProfiles.cs
- HtmlShim.cs
- MessageQueueCriteria.cs
- ExtentJoinTreeNode.cs
- StateInitialization.cs
- ToolStripTemplateNode.cs
- AxisAngleRotation3D.cs
- MaskedTextBoxTextEditor.cs
- QilName.cs
- ProfileInfo.cs
- CallbackTimeoutsBehavior.cs
- ClonableStack.cs