Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1305600 / 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
- QualifiedCellIdBoolean.cs
- Lease.cs
- DesignerProperties.cs
- QueueException.cs
- ListenerElementsCollection.cs
- DocumentsTrace.cs
- BitmapEffectDrawing.cs
- SqlProcedureAttribute.cs
- TypeConverterValueSerializer.cs
- BuildProviderAppliesToAttribute.cs
- PropertyMetadata.cs
- ItemList.cs
- PartialTrustVisibleAssemblyCollection.cs
- CalendarSelectionChangedEventArgs.cs
- InvokeSchedule.cs
- ParameterCollection.cs
- DeadCharTextComposition.cs
- GroupBoxRenderer.cs
- SafeFileMapViewHandle.cs
- SetStoryboardSpeedRatio.cs
- FamilyMap.cs
- CompareValidator.cs
- TargetPerspective.cs
- TextTreeExtractElementUndoUnit.cs
- FileSecurity.cs
- Stack.cs
- MailMessageEventArgs.cs
- Parser.cs
- XmlSchemaSimpleTypeUnion.cs
- WebUtil.cs
- Transaction.cs
- QueryLifecycle.cs
- QilXmlWriter.cs
- SuppressMessageAttribute.cs
- SamlEvidence.cs
- TimerElapsedEvenArgs.cs
- ScriptBehaviorDescriptor.cs
- SignatureToken.cs
- WinInet.cs
- RichTextBoxConstants.cs
- DbDeleteCommandTree.cs
- TextBoxView.cs
- HostedHttpRequestAsyncResult.cs
- HttpCapabilitiesBase.cs
- ResourceProviderFactory.cs
- WebHttpSecurityElement.cs
- CopyNodeSetAction.cs
- ConnectionPoint.cs
- MetadataCacheItem.cs
- DuplicateWaitObjectException.cs
- XPathItem.cs
- GacUtil.cs
- HttpProfileBase.cs
- GradientPanel.cs
- DrawingServices.cs
- TokenBasedSetEnumerator.cs
- ClientTarget.cs
- DataBoundControlAdapter.cs
- StoreContentChangedEventArgs.cs
- DataKey.cs
- OrderedDictionary.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GroupLabel.cs
- SequenceNumber.cs
- UserValidatedEventArgs.cs
- XPathArrayIterator.cs
- CodeConditionStatement.cs
- WindowsListViewItemStartMenu.cs
- serverconfig.cs
- Lasso.cs
- _ConnectionGroup.cs
- ButtonChrome.cs
- TemplatedWizardStep.cs
- InitializerFacet.cs
- IndexedString.cs
- HtmlEmptyTagControlBuilder.cs
- XmlDataSourceNodeDescriptor.cs
- InkCanvasSelection.cs
- SurrogateEncoder.cs
- XDeferredAxisSource.cs
- SyntaxCheck.cs
- X509ChainPolicy.cs
- _ScatterGatherBuffers.cs
- WrappedReader.cs
- ExpressionVisitorHelpers.cs
- TextPointer.cs
- StrokeNode.cs
- SqlCommand.cs
- DiscoveryEndpoint.cs
- EntityType.cs
- RequestNavigateEventArgs.cs
- HttpRequest.cs
- GeneralTransform3DCollection.cs
- SerializationAttributes.cs
- ProtocolsConfiguration.cs
- UnmanagedMemoryStream.cs
- WindowsFormsHost.cs
- ToolboxControl.cs
- TextViewElement.cs
- WebPartZoneBaseDesigner.cs