Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextHintingModeValidation.cs / 1305600 / TextHintingModeValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsTextHintingModeValid(object valueObject) { TextHintingMode value = (TextHintingMode) valueObject; return (value == TextHintingMode.Auto) || (value == TextHintingMode.Fixed) || (value == TextHintingMode.Animated); } } } // 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. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsTextHintingModeValid(object valueObject) { TextHintingMode value = (TextHintingMode) valueObject; return (value == TextHintingMode.Auto) || (value == TextHintingMode.Fixed) || (value == TextHintingMode.Animated); } } } // 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
- ProviderConnectionPointCollection.cs
- PagerSettings.cs
- httpserverutility.cs
- AssertHelper.cs
- ControllableStoryboardAction.cs
- ToolStripSettings.cs
- SystemNetHelpers.cs
- SqlTopReducer.cs
- ActivationWorker.cs
- OdbcConnectionOpen.cs
- AccessedThroughPropertyAttribute.cs
- AttributeInfo.cs
- DeploymentExceptionMapper.cs
- SymmetricAlgorithm.cs
- TagPrefixAttribute.cs
- Context.cs
- ValidationErrorCollection.cs
- TreeNodeBindingDepthConverter.cs
- BasePattern.cs
- XPathDocumentBuilder.cs
- MobileErrorInfo.cs
- DataGridView.cs
- DetailsViewInsertedEventArgs.cs
- Stack.cs
- GlobalProxySelection.cs
- RowBinding.cs
- ListViewItemEventArgs.cs
- sqlser.cs
- LocalizationParserHooks.cs
- SourceLineInfo.cs
- Int32Storage.cs
- CommandManager.cs
- CodeDomConfigurationHandler.cs
- GroupBoxDesigner.cs
- DataGridViewHeaderCell.cs
- WpfGeneratedKnownTypes.cs
- ChangePassword.cs
- CodeActivityMetadata.cs
- XmlDataLoader.cs
- Automation.cs
- InteropAutomationProvider.cs
- Timer.cs
- SqlDataSourceCommandEventArgs.cs
- AssemblyCache.cs
- ListViewEditEventArgs.cs
- DropDownButton.cs
- ToolStripDesigner.cs
- TextCompositionEventArgs.cs
- Assembly.cs
- DatagridviewDisplayedBandsData.cs
- ServiceInfo.cs
- RealProxy.cs
- RegexCharClass.cs
- State.cs
- XmlIncludeAttribute.cs
- PermissionListSet.cs
- ChangeInterceptorAttribute.cs
- EdmFunction.cs
- NegationPusher.cs
- SimpleType.cs
- StringResourceManager.cs
- SqlDataReader.cs
- GroupBox.cs
- BasePattern.cs
- XamlTypeMapper.cs
- ClientProxyGenerator.cs
- WebPartConnectionsCloseVerb.cs
- HScrollBar.cs
- ObjectStateManager.cs
- SQLRoleProvider.cs
- CommentAction.cs
- MetadataCollection.cs
- IisTraceListener.cs
- KeyboardDevice.cs
- DisposableCollectionWrapper.cs
- TextClipboardData.cs
- PerformanceCounterPermissionEntryCollection.cs
- VisualStyleTypesAndProperties.cs
- SslStream.cs
- ALinqExpressionVisitor.cs
- VectorValueSerializer.cs
- TypeCollectionPropertyEditor.cs
- DataSourceCache.cs
- EventTrigger.cs
- PeerContact.cs
- SoapReflectionImporter.cs
- StringPropertyBuilder.cs
- DataSourceControl.cs
- DataBindEngine.cs
- ISAPIWorkerRequest.cs
- SelectionWordBreaker.cs
- FontResourceCache.cs
- BindingList.cs
- RtfFormatStack.cs
- TraceHandlerErrorFormatter.cs
- ModuleBuilderData.cs
- EventTask.cs
- OleDbConnectionInternal.cs
- ApplicationSecurityInfo.cs
- EntityUtil.cs