Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RecoverInstanceLocksCommand.cs
- MemberDescriptor.cs
- LogReserveAndAppendState.cs
- EarlyBoundInfo.cs
- HttpCookieCollection.cs
- RelationshipNavigation.cs
- ToolStripItemCollection.cs
- Opcode.cs
- TextTreeRootNode.cs
- XamlTemplateSerializer.cs
- OverrideMode.cs
- ShaderEffect.cs
- SR.cs
- ImageDrawing.cs
- PassportIdentity.cs
- InvalidTimeZoneException.cs
- ZipIOExtraField.cs
- ClientType.cs
- IndicFontClient.cs
- TypeExtension.cs
- OutOfProcStateClientManager.cs
- SqlReferenceCollection.cs
- XPathItem.cs
- KeyTime.cs
- DirectionalLight.cs
- IsolationInterop.cs
- KnownColorTable.cs
- InkCanvasAutomationPeer.cs
- DataColumn.cs
- exports.cs
- BaseValidator.cs
- WebPartConnectionsCancelEventArgs.cs
- _NetworkingPerfCounters.cs
- WebScriptEnablingElement.cs
- LambdaCompiler.ControlFlow.cs
- DaylightTime.cs
- OrderByQueryOptionExpression.cs
- DataMisalignedException.cs
- PageCodeDomTreeGenerator.cs
- figurelengthconverter.cs
- DocumentPage.cs
- IxmlLineInfo.cs
- PasswordBox.cs
- Atom10ItemFormatter.cs
- PeerCollaboration.cs
- InputLanguageProfileNotifySink.cs
- MultiTrigger.cs
- EventMappingSettings.cs
- DivideByZeroException.cs
- ProviderConnectionPointCollection.cs
- WebPartZoneBase.cs
- Win32SafeHandles.cs
- WhileDesigner.cs
- RuleSetBrowserDialog.cs
- FormClosedEvent.cs
- SecurityCriticalDataForSet.cs
- SmtpNetworkElement.cs
- MouseDevice.cs
- RadioButtonStandardAdapter.cs
- PolicyChain.cs
- ConfigurationPermission.cs
- XmlSchemaObjectTable.cs
- DataTransferEventArgs.cs
- SqlDataSource.cs
- BamlLocalizationDictionary.cs
- CodeMemberMethod.cs
- securestring.cs
- ObjectIDGenerator.cs
- UnsignedPublishLicense.cs
- TreeViewImageKeyConverter.cs
- DataTableCollection.cs
- PropertyEntry.cs
- FilteredXmlReader.cs
- BamlResourceDeserializer.cs
- LicenseContext.cs
- IDQuery.cs
- smtpconnection.cs
- XmlDownloadManager.cs
- ArcSegment.cs
- PassportAuthentication.cs
- UIElementAutomationPeer.cs
- ToolStripManager.cs
- CachedPathData.cs
- TemplateInstanceAttribute.cs
- XmlHelper.cs
- XmlArrayItemAttributes.cs
- SqlConnectionStringBuilder.cs
- OpenFileDialog.cs
- GeneralTransform3DGroup.cs
- RemotingException.cs
- EventLog.cs
- ExpandCollapsePattern.cs
- InfiniteIntConverter.cs
- AbstractSvcMapFileLoader.cs
- InstanceValue.cs
- EditingContext.cs
- PropertyEmitter.cs
- SpellerError.cs
- WebPartChrome.cs
- ActivityDesignerAccessibleObject.cs