Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / PenLineCapValidation.cs / 1 / 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
- QueryCacheKey.cs
- WebPartZoneBaseDesigner.cs
- ValidatorUtils.cs
- CompModSwitches.cs
- HttpVersion.cs
- StatusBarDrawItemEvent.cs
- DefaultSection.cs
- SystemDropShadowChrome.cs
- ActivityCodeDomSerializer.cs
- PackWebResponse.cs
- CalendarData.cs
- OleDbDataReader.cs
- AssemblyHash.cs
- TableStyle.cs
- TemplateApplicationHelper.cs
- DeferredReference.cs
- DataServiceKeyAttribute.cs
- SafeSecurityHelper.cs
- ButtonBase.cs
- PackageProperties.cs
- ZoneIdentityPermission.cs
- Vector3DAnimationUsingKeyFrames.cs
- EventProviderWriter.cs
- TextRangeBase.cs
- MultipartContentParser.cs
- StatusBarItemAutomationPeer.cs
- wgx_commands.cs
- SymbolTable.cs
- EntityViewGenerationAttribute.cs
- ExceptionValidationRule.cs
- DataObjectMethodAttribute.cs
- Timer.cs
- IndexedString.cs
- AccessViolationException.cs
- OpCodes.cs
- ScrollEvent.cs
- DataGridViewButtonColumn.cs
- DifferencingCollection.cs
- DotAtomReader.cs
- DbDeleteCommandTree.cs
- HttpRuntime.cs
- _OSSOCK.cs
- Pair.cs
- TrimSurroundingWhitespaceAttribute.cs
- FontFaceLayoutInfo.cs
- BitmapData.cs
- UTF7Encoding.cs
- FormViewCommandEventArgs.cs
- LinqDataView.cs
- ImageMetadata.cs
- GeneralTransformGroup.cs
- WpfWebRequestHelper.cs
- GCHandleCookieTable.cs
- NonVisualControlAttribute.cs
- IDispatchConstantAttribute.cs
- FormsAuthenticationEventArgs.cs
- CodeAccessSecurityEngine.cs
- MediaEntryAttribute.cs
- HyperLinkColumn.cs
- GB18030Encoding.cs
- ExceptionValidationRule.cs
- ReadOnlyDataSourceView.cs
- AttributeExtensions.cs
- XmlName.cs
- SignedXml.cs
- DefaultDialogButtons.cs
- LocalizeDesigner.cs
- WebColorConverter.cs
- StaticSiteMapProvider.cs
- ProtectedConfigurationSection.cs
- RoutedEventConverter.cs
- BoolExpressionVisitors.cs
- Collection.cs
- KeyManager.cs
- ThreadExceptionEvent.cs
- SessionPageStatePersister.cs
- WebBrowser.cs
- ShaderRenderModeValidation.cs
- BinHexDecoder.cs
- OperationParameterInfo.cs
- Scalars.cs
- jithelpers.cs
- ValidatingReaderNodeData.cs
- DisplayNameAttribute.cs
- SwitchCase.cs
- AnyReturnReader.cs
- CapabilitiesUse.cs
- PageCatalogPart.cs
- VectorKeyFrameCollection.cs
- Resources.Designer.cs
- LocalsItemDescription.cs
- WebPartMinimizeVerb.cs
- ApplicationFileParser.cs
- ExpressionBindingCollection.cs
- RegexEditorDialog.cs
- WebPartHeaderCloseVerb.cs
- PointAnimationUsingPath.cs
- LocatorBase.cs
- PrivateFontCollection.cs
- StreamGeometry.cs