Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / PenLineCapValidation.cs / 1305600 / PenLineCapValidation.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 IsPenLineCapValid(object valueObject) { PenLineCap value = (PenLineCap) valueObject; return (value == PenLineCap.Flat) || (value == PenLineCap.Square) || (value == PenLineCap.Round) || (value == PenLineCap.Triangle); } } } // 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 IsPenLineCapValid(object valueObject) { PenLineCap value = (PenLineCap) valueObject; return (value == PenLineCap.Flat) || (value == PenLineCap.Square) || (value == PenLineCap.Round) || (value == PenLineCap.Triangle); } } } // 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
- Timer.cs
- ParameterElementCollection.cs
- LightweightCodeGenerator.cs
- HashHelper.cs
- SizeConverter.cs
- Debug.cs
- InputMethod.cs
- TextDecorationCollection.cs
- glyphs.cs
- RefType.cs
- TailPinnedEventArgs.cs
- Content.cs
- WmpBitmapEncoder.cs
- DataGridViewCellCancelEventArgs.cs
- FileAccessException.cs
- PropVariant.cs
- ContactManager.cs
- MessagePropertyDescription.cs
- GenerateTemporaryTargetAssembly.cs
- InkCanvas.cs
- PackageProperties.cs
- InternalResources.cs
- SQLSingleStorage.cs
- SqlLiftIndependentRowExpressions.cs
- AlphabeticalEnumConverter.cs
- ContourSegment.cs
- LocatorBase.cs
- RowToParametersTransformer.cs
- FormViewPagerRow.cs
- querybuilder.cs
- Number.cs
- PageContent.cs
- Matrix.cs
- PersonalizationStateInfo.cs
- SessionPageStateSection.cs
- InfoCardSymmetricCrypto.cs
- infer.cs
- OptimalBreakSession.cs
- Menu.cs
- MessageLogTraceRecord.cs
- FlatButtonAppearance.cs
- ForeignConstraint.cs
- EnumCodeDomSerializer.cs
- Rules.cs
- X509SecurityTokenProvider.cs
- WsdlParser.cs
- WindowsUpDown.cs
- CustomAssemblyResolver.cs
- PrivilegedConfigurationManager.cs
- LogicalTreeHelper.cs
- UseLicense.cs
- DataList.cs
- DataPager.cs
- NonClientArea.cs
- WebContext.cs
- ToolStripItemRenderEventArgs.cs
- SqlExpressionNullability.cs
- ConfigXmlCDataSection.cs
- WebRequest.cs
- Inline.cs
- oledbmetadatacollectionnames.cs
- ObsoleteAttribute.cs
- DefaultValidator.cs
- ProfileWorkflowElement.cs
- PermissionSet.cs
- Axis.cs
- TextUtf8RawTextWriter.cs
- DesignerGenericWebPart.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- TemplatedControlDesigner.cs
- Nodes.cs
- RelationshipWrapper.cs
- OperationContext.cs
- AudioStateChangedEventArgs.cs
- ServiceNameElement.cs
- ImageListStreamer.cs
- HttpContextWrapper.cs
- XmlSchemaSimpleTypeUnion.cs
- WebPermission.cs
- VisualTreeHelper.cs
- RegexRunnerFactory.cs
- XsltArgumentList.cs
- ExtenderHelpers.cs
- Vector3D.cs
- OleDbSchemaGuid.cs
- HandleRef.cs
- DataFormat.cs
- ConnectionInterfaceCollection.cs
- CryptoConfig.cs
- CachedFontFace.cs
- SqlRecordBuffer.cs
- IgnoreFileBuildProvider.cs
- ActivationServices.cs
- SequentialOutput.cs
- ListBase.cs
- ClientScriptManager.cs
- ClaimTypeElementCollection.cs
- ScrollChrome.cs
- ContentPathSegment.cs
- TabControl.cs