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
- cookie.cs
- UIElementAutomationPeer.cs
- TriggerAction.cs
- HwndAppCommandInputProvider.cs
- TimeEnumHelper.cs
- TrackingWorkflowEventArgs.cs
- ResourceExpression.cs
- ProcessModelSection.cs
- TextAdaptor.cs
- InfoCardPolicy.cs
- ImageField.cs
- BindStream.cs
- ObjectHelper.cs
- ValueType.cs
- TypedTableBase.cs
- CompilationUtil.cs
- ButtonPopupAdapter.cs
- CellPartitioner.cs
- OrderingQueryOperator.cs
- NetworkInformationException.cs
- OperationAbortedException.cs
- FixedDocument.cs
- SQLInt64Storage.cs
- DoubleLink.cs
- AssemblyInfo.cs
- HttpCachePolicy.cs
- UnsafeNativeMethodsTablet.cs
- MediaElementAutomationPeer.cs
- RectKeyFrameCollection.cs
- EventManager.cs
- ProcessInputEventArgs.cs
- ObjectDisposedException.cs
- TextBoxAutomationPeer.cs
- LinkConverter.cs
- CharEnumerator.cs
- VScrollProperties.cs
- MinimizableAttributeTypeConverter.cs
- StsCommunicationException.cs
- MetadataException.cs
- MatrixCamera.cs
- ContainerFilterService.cs
- FixedDocumentPaginator.cs
- XmlQualifiedNameTest.cs
- Privilege.cs
- SeekStoryboard.cs
- StylusPlugInCollection.cs
- PrinterUnitConvert.cs
- DefaultBinder.cs
- AssemblyBuilderData.cs
- MdImport.cs
- AutomationPattern.cs
- CollectionChange.cs
- XPathExpr.cs
- ProcessModelSection.cs
- ContainerSelectorBehavior.cs
- ImageMap.cs
- TraceContextRecord.cs
- Authorization.cs
- AnnotationResourceChangedEventArgs.cs
- OutputCacheProfile.cs
- GPPOINT.cs
- JoinCqlBlock.cs
- Int16KeyFrameCollection.cs
- ConfigurationSettings.cs
- StylusPoint.cs
- DelegateBodyWriter.cs
- Gdiplus.cs
- _MultipleConnectAsync.cs
- UIPermission.cs
- CodeSubDirectory.cs
- sqlser.cs
- MimeXmlImporter.cs
- TableHeaderCell.cs
- SettingsAttributeDictionary.cs
- CLSCompliantAttribute.cs
- DataServiceOperationContext.cs
- Rect3DValueSerializer.cs
- SynchronizedMessageSource.cs
- DocumentsTrace.cs
- ReadOnlyMetadataCollection.cs
- UiaCoreTypesApi.cs
- MethodSignatureGenerator.cs
- QilPatternVisitor.cs
- XmlDataCollection.cs
- ScriptModule.cs
- XmlAttributes.cs
- FormClosedEvent.cs
- FileLogRecordEnumerator.cs
- ReliableMessagingHelpers.cs
- UnlockCardRequest.cs
- TextElementCollection.cs
- infer.cs
- WindowsMenu.cs
- CSharpCodeProvider.cs
- COM2TypeInfoProcessor.cs
- BamlTreeUpdater.cs
- CacheEntry.cs
- WebPartZoneBaseDesigner.cs
- AutoFocusStyle.xaml.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs