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
- HostingEnvironmentException.cs
- QueryUtil.cs
- CellCreator.cs
- EntitySetDataBindingList.cs
- DataControlExtensions.cs
- CompatibleComparer.cs
- SqlDataSourceParameterParser.cs
- HttpBrowserCapabilitiesWrapper.cs
- Transactions.cs
- DesignerWithHeader.cs
- EventSinkActivity.cs
- Monitor.cs
- HMACSHA512.cs
- ManipulationPivot.cs
- GeometryHitTestParameters.cs
- SettingsProviderCollection.cs
- InternalConfigEventArgs.cs
- Html32TextWriter.cs
- ZeroOpNode.cs
- WebConfigurationManager.cs
- ConfigurationStrings.cs
- WindowsBrush.cs
- FrameDimension.cs
- _IPv6Address.cs
- Separator.cs
- AdapterDictionary.cs
- HatchBrush.cs
- ScaleTransform.cs
- SmtpNtlmAuthenticationModule.cs
- ADMembershipProvider.cs
- HyperLinkField.cs
- ServiceMetadataPublishingElement.cs
- ValidationHelper.cs
- CultureInfoConverter.cs
- SafeSecurityHandles.cs
- DbMetaDataCollectionNames.cs
- WebMethodAttribute.cs
- BulletedList.cs
- SoapMessage.cs
- FastPropertyAccessor.cs
- SplitContainer.cs
- MenuItemBinding.cs
- GroupItemAutomationPeer.cs
- SHA384Managed.cs
- DocumentViewerBase.cs
- Debug.cs
- BufferBuilder.cs
- Symbol.cs
- SafeCryptHandles.cs
- FontUnitConverter.cs
- RemoveStoryboard.cs
- SafeEventLogReadHandle.cs
- PropertyItem.cs
- WindowPatternIdentifiers.cs
- DoubleLink.cs
- DictionaryGlobals.cs
- NameValuePermission.cs
- DBDataPermission.cs
- UdpDiscoveryMessageFilter.cs
- DataListItemCollection.cs
- AnonymousIdentificationSection.cs
- MainMenu.cs
- SchemaElementLookUpTableEnumerator.cs
- XmlDictionaryReaderQuotas.cs
- ChangePasswordDesigner.cs
- FlowStep.cs
- SiteMembershipCondition.cs
- HtmlLiteralTextAdapter.cs
- XamlRtfConverter.cs
- UpdateProgress.cs
- StringSorter.cs
- BaseProcessor.cs
- COAUTHIDENTITY.cs
- Int64Converter.cs
- DrawingContext.cs
- SeparatorAutomationPeer.cs
- ResourcesBuildProvider.cs
- QueryPageSettingsEventArgs.cs
- ResXResourceSet.cs
- ResourceType.cs
- Wildcard.cs
- SimpleLine.cs
- Int32CollectionConverter.cs
- DataTemplateSelector.cs
- DtrList.cs
- AnchoredBlock.cs
- TypeConverterAttribute.cs
- Column.cs
- BamlBinaryWriter.cs
- DataContractSerializerOperationBehavior.cs
- XPathMultyIterator.cs
- ExpressionHelper.cs
- InvalidCastException.cs
- _CommandStream.cs
- MatrixKeyFrameCollection.cs
- DeploymentExceptionMapper.cs
- ConstraintStruct.cs
- BitmapFrameEncode.cs
- SplitterPanel.cs
- DispatcherEventArgs.cs