Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ScrollData.cs
- PieceNameHelper.cs
- SHA1CryptoServiceProvider.cs
- Message.cs
- SignatureResourcePool.cs
- PageSettings.cs
- Subset.cs
- XpsTokenContext.cs
- WorkflowRuntime.cs
- AssociationSet.cs
- MissingSatelliteAssemblyException.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- BamlBinaryWriter.cs
- LogExtent.cs
- NodeInfo.cs
- MailMessageEventArgs.cs
- DataException.cs
- HostExecutionContextManager.cs
- WmfPlaceableFileHeader.cs
- SmuggledIUnknown.cs
- ReceiveMessageContent.cs
- SharedPersonalizationStateInfo.cs
- DataSpaceManager.cs
- SettingsPropertyWrongTypeException.cs
- UnauthorizedAccessException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XmlSchemaException.cs
- ByteArrayHelperWithString.cs
- XmlFormatExtensionAttribute.cs
- TypeUnloadedException.cs
- DbProviderServices.cs
- InvokePattern.cs
- ResolveResponseInfo.cs
- XmlSchemas.cs
- AssemblyBuilder.cs
- Operators.cs
- ReplyChannelAcceptor.cs
- EventDescriptor.cs
- RequestNavigateEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- SingleResultAttribute.cs
- QuotedPrintableStream.cs
- NavigatingCancelEventArgs.cs
- WindowsFormsHostAutomationPeer.cs
- SchemaObjectWriter.cs
- DelegateBodyWriter.cs
- HttpConfigurationSystem.cs
- TextOnlyOutput.cs
- ListControl.cs
- ServicesUtilities.cs
- FragmentQueryProcessor.cs
- SyndicationCategory.cs
- PinnedBufferMemoryStream.cs
- InternalBase.cs
- GetPageNumberCompletedEventArgs.cs
- HighlightComponent.cs
- CommonObjectSecurity.cs
- MimeMapping.cs
- PropertyTabAttribute.cs
- UIElement3D.cs
- CompiledRegexRunnerFactory.cs
- ProcessInputEventArgs.cs
- ButtonChrome.cs
- ProgressBarBrushConverter.cs
- RequestCachePolicy.cs
- RequestSecurityToken.cs
- ProviderMetadata.cs
- HeaderUtility.cs
- CharAnimationBase.cs
- ChineseLunisolarCalendar.cs
- SiteMapPath.cs
- Encoding.cs
- SortedList.cs
- NameValueConfigurationElement.cs
- COM2IPerPropertyBrowsingHandler.cs
- AddInAdapter.cs
- CompilationUtil.cs
- smtpconnection.cs
- AssemblyResourceLoader.cs
- TextDocumentView.cs
- CollectionBuilder.cs
- codemethodreferenceexpression.cs
- ComponentSerializationService.cs
- NumericUpDownAcceleration.cs
- ConfigurationManagerHelperFactory.cs
- TdsEnums.cs
- GridViewCommandEventArgs.cs
- RecognizerStateChangedEventArgs.cs
- OleDbTransaction.cs
- HTTPNotFoundHandler.cs
- CodeVariableReferenceExpression.cs
- bindurihelper.cs
- MetaDataInfo.cs
- PrincipalPermission.cs
- DataGridViewHitTestInfo.cs
- TransformConverter.cs
- DbDataSourceEnumerator.cs
- HitTestParameters3D.cs
- ScriptDescriptor.cs
- ListItemConverter.cs