Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- BrowserCapabilitiesCompiler.cs
- AsyncPostBackTrigger.cs
- _UriTypeConverter.cs
- WebPageTraceListener.cs
- AppDomainProtocolHandler.cs
- EventRecordWrittenEventArgs.cs
- BoolExpression.cs
- ComponentManagerBroker.cs
- ImportOptions.cs
- VarRefManager.cs
- LoginView.cs
- CorrelationManager.cs
- versioninfo.cs
- HintTextMaxWidthConverter.cs
- DnsEndPoint.cs
- MetadataPropertyAttribute.cs
- DataControlFieldTypeEditor.cs
- Tile.cs
- ListMarkerLine.cs
- MimeFormatter.cs
- ProvideValueServiceProvider.cs
- RequestUriProcessor.cs
- NavigationWindowAutomationPeer.cs
- SqlProfileProvider.cs
- DependsOnAttribute.cs
- SupportsPreviewControlAttribute.cs
- PeerCollaborationPermission.cs
- DeploymentSection.cs
- Effect.cs
- OrderedParallelQuery.cs
- Invariant.cs
- SimpleHandlerFactory.cs
- MethodExpr.cs
- PartialCachingControl.cs
- SHA384Managed.cs
- SHA512Cng.cs
- NativeMethods.cs
- PathGradientBrush.cs
- DbConnectionPoolIdentity.cs
- HttpException.cs
- ProfileParameter.cs
- StatusBar.cs
- UserPersonalizationStateInfo.cs
- ParserStreamGeometryContext.cs
- ProtocolsConfigurationHandler.cs
- FixedDocument.cs
- HttpChannelHelper.cs
- ImageKeyConverter.cs
- Process.cs
- RootBrowserWindow.cs
- LingerOption.cs
- CompositeCollectionView.cs
- DatatypeImplementation.cs
- DefaultAsyncDataDispatcher.cs
- ResolveCriteria.cs
- SelectionRange.cs
- UrlMappingsModule.cs
- Soap12ProtocolImporter.cs
- ThicknessAnimationBase.cs
- UnsafeNativeMethods.cs
- UnsafeNativeMethods.cs
- ConnectionStringEditor.cs
- AsyncOperation.cs
- QueryGeneratorBase.cs
- SystemWebCachingSectionGroup.cs
- GridItem.cs
- ConfigurationStrings.cs
- SQLDouble.cs
- DummyDataSource.cs
- FaultPropagationQuery.cs
- BitmapSourceSafeMILHandle.cs
- TrackingQueryElement.cs
- LogLogRecord.cs
- PersonalizableAttribute.cs
- FtpWebResponse.cs
- BuildTopDownAttribute.cs
- TcpConnectionPool.cs
- CatalogPartCollection.cs
- LowerCaseStringConverter.cs
- DocumentApplicationJournalEntry.cs
- ThousandthOfEmRealPoints.cs
- NavigatorOutput.cs
- NonSerializedAttribute.cs
- StylusEventArgs.cs
- DefaultParameterValueAttribute.cs
- QilReplaceVisitor.cs
- SecurityAttributeGenerationHelper.cs
- PolyLineSegment.cs
- EventManager.cs
- RegexBoyerMoore.cs
- versioninfo.cs
- WebBrowser.cs
- TextTreeObjectNode.cs
- AutoGeneratedFieldProperties.cs
- PageRanges.cs
- InProcStateClientManager.cs
- SimpleType.cs
- Comparer.cs
- ClientUrlResolverWrapper.cs
- FilterElement.cs