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
- LayoutSettings.cs
- RSACryptoServiceProvider.cs
- Rotation3DAnimationUsingKeyFrames.cs
- DataServicePagingProviderWrapper.cs
- EventDescriptorCollection.cs
- ConfigurationValues.cs
- CleanUpVirtualizedItemEventArgs.cs
- CannotUnloadAppDomainException.cs
- Number.cs
- XmlAnyElementAttribute.cs
- FacetDescriptionElement.cs
- LocalizationCodeDomSerializer.cs
- DictionaryCustomTypeDescriptor.cs
- MexTcpBindingElement.cs
- DictionaryEntry.cs
- CodeComment.cs
- EventlogProvider.cs
- ChannelOptions.cs
- NativeMethods.cs
- ContextMenuStrip.cs
- WindowsTitleBar.cs
- JoinSymbol.cs
- CroppedBitmap.cs
- ConstructorExpr.cs
- PolyQuadraticBezierSegment.cs
- WindowsMenu.cs
- ContextMarshalException.cs
- AffineTransform3D.cs
- TreeIterators.cs
- Number.cs
- OperationCanceledException.cs
- WebServiceReceiveDesigner.cs
- PolyLineSegment.cs
- DbReferenceCollection.cs
- AuthorizationContext.cs
- SubstitutionList.cs
- ClientTargetSection.cs
- XmlAttributeOverrides.cs
- ElementHost.cs
- DataControlFieldHeaderCell.cs
- RectAnimationClockResource.cs
- prefixendpointaddressmessagefiltertable.cs
- SqlMethodAttribute.cs
- ApplicationServicesHostFactory.cs
- ColorTransformHelper.cs
- ToolStripDropDownItem.cs
- FileRecordSequenceHelper.cs
- DeferredReference.cs
- InputManager.cs
- SystemIPv4InterfaceProperties.cs
- ObjRef.cs
- _AutoWebProxyScriptWrapper.cs
- NameScopePropertyAttribute.cs
- ZipFileInfo.cs
- ChangePassword.cs
- sqlnorm.cs
- ExpressionTextBoxAutomationPeer.cs
- WindowsAltTab.cs
- XPathParser.cs
- DiscreteKeyFrames.cs
- SecureUICommand.cs
- OverlappedAsyncResult.cs
- InkCanvasAutomationPeer.cs
- OptimalTextSource.cs
- HostedHttpTransportManager.cs
- MemberInfoSerializationHolder.cs
- CheckedListBox.cs
- SoapAttributeOverrides.cs
- SqlRecordBuffer.cs
- HandlerBase.cs
- IPEndPoint.cs
- VersionedStreamOwner.cs
- IPGlobalProperties.cs
- PrintDialogException.cs
- InteropBitmapSource.cs
- NetworkInformationException.cs
- VBIdentifierNameEditor.cs
- FigureParagraph.cs
- SoapSchemaImporter.cs
- AtlasWeb.Designer.cs
- FileUtil.cs
- EditorBrowsableAttribute.cs
- BitStack.cs
- ApplicationTrust.cs
- TableLayout.cs
- Debug.cs
- XmlSchemaAnnotated.cs
- ScriptReferenceEventArgs.cs
- DATA_BLOB.cs
- GraphicsContext.cs
- ResourceLoader.cs
- UserControlFileEditor.cs
- FaultCode.cs
- Pens.cs
- LocalValueEnumerator.cs
- Win32MouseDevice.cs
- SqlMethodAttribute.cs
- AspNetHostingPermission.cs
- CodeSubDirectoriesCollection.cs