Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1 / TextDecorationUnitValidation.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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- KeySpline.cs
- UserValidatedEventArgs.cs
- LinqToSqlWrapper.cs
- ImageKeyConverter.cs
- StringBuilder.cs
- MouseWheelEventArgs.cs
- Vector3DCollection.cs
- BookmarkUndoUnit.cs
- ValidatorUtils.cs
- SchemaTableOptionalColumn.cs
- ToggleProviderWrapper.cs
- ProcessModelSection.cs
- URLString.cs
- TextBox.cs
- NumberFunctions.cs
- OleDbSchemaGuid.cs
- ReliabilityContractAttribute.cs
- RSAOAEPKeyExchangeDeformatter.cs
- InvalidOperationException.cs
- PropertyIDSet.cs
- CacheHelper.cs
- ControlBuilder.cs
- ClientSettingsSection.cs
- ProgressBar.cs
- RuntimeConfigLKG.cs
- ToolStripItemCollection.cs
- ListDictionaryInternal.cs
- FilterEventArgs.cs
- SiteMap.cs
- SessionState.cs
- ConfigXmlText.cs
- ComponentManagerBroker.cs
- streamingZipPartStream.cs
- NameValueSectionHandler.cs
- XmlAttributes.cs
- RequestCachingSection.cs
- DataBoundControlParameterTarget.cs
- Effect.cs
- QilReplaceVisitor.cs
- ScrollEventArgs.cs
- PropertyEmitter.cs
- ActivityCollectionMarkupSerializer.cs
- SystemIPAddressInformation.cs
- DataServiceConfiguration.cs
- StringFunctions.cs
- SqlInternalConnectionTds.cs
- FixedFindEngine.cs
- SystemIPv4InterfaceProperties.cs
- WebControlAdapter.cs
- RegexTree.cs
- LineProperties.cs
- SHA1.cs
- SRef.cs
- BindingListCollectionView.cs
- ListMarkerSourceInfo.cs
- BitmapEffectGroup.cs
- PageContent.cs
- TreeViewDesigner.cs
- XmlSchemaDatatype.cs
- BypassElementCollection.cs
- DebugView.cs
- EditorPart.cs
- TabletDeviceInfo.cs
- AddInToken.cs
- KerberosSecurityTokenProvider.cs
- JsonDataContract.cs
- SourceInterpreter.cs
- MsmqHostedTransportConfiguration.cs
- ColorTransform.cs
- EventArgs.cs
- ComplexTypeEmitter.cs
- TextSelection.cs
- SerializationBinder.cs
- WindowsTreeView.cs
- ReturnEventArgs.cs
- PerfCounters.cs
- CharAnimationUsingKeyFrames.cs
- PostBackOptions.cs
- Util.cs
- PageThemeBuildProvider.cs
- TrackingProfileDeserializationException.cs
- NotifyCollectionChangedEventArgs.cs
- XpsPackagingException.cs
- ChameleonKey.cs
- TaskForm.cs
- DataKeyCollection.cs
- XmlSchemaComplexContentRestriction.cs
- ObfuscateAssemblyAttribute.cs
- TypeConverters.cs
- SqlDependencyUtils.cs
- Viewport3DAutomationPeer.cs
- BooleanAnimationUsingKeyFrames.cs
- XamlFigureLengthSerializer.cs
- DesignerProperties.cs
- SecureUICommand.cs
- SqlComparer.cs
- RelationshipSet.cs
- OptimalTextSource.cs
- MetadataItemSerializer.cs
- IisTraceListener.cs