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
- CompiledQuery.cs
- ScrollableControl.cs
- TypedElement.cs
- CommandManager.cs
- SafeNativeMethods.cs
- xmlformatgeneratorstatics.cs
- Baml2006KeyRecord.cs
- DataGridViewTopRowAccessibleObject.cs
- PeerApplicationLaunchInfo.cs
- MsmqIntegrationMessagePool.cs
- MaterialGroup.cs
- GridProviderWrapper.cs
- DesignerForm.cs
- DesignerToolboxInfo.cs
- TimeZone.cs
- KeyGestureValueSerializer.cs
- HtmlWindowCollection.cs
- TagMapCollection.cs
- XmlSchemaSubstitutionGroup.cs
- UiaCoreTypesApi.cs
- SynchronizingStream.cs
- StrongNameUtility.cs
- BrushMappingModeValidation.cs
- IndentedTextWriter.cs
- EdmToObjectNamespaceMap.cs
- MailSettingsSection.cs
- TraceUtility.cs
- ObjectPropertyMapping.cs
- SrgsText.cs
- CryptoKeySecurity.cs
- BitmapEffectInput.cs
- BitmapMetadataBlob.cs
- Events.cs
- MaskInputRejectedEventArgs.cs
- ControlParameter.cs
- ProfilePropertySettingsCollection.cs
- NamespaceTable.cs
- PopupRoot.cs
- VariableElement.cs
- UmAlQuraCalendar.cs
- PartialTrustVisibleAssembly.cs
- Stream.cs
- RuntimeConfigLKG.cs
- ServiceReference.cs
- ActivityExecutor.cs
- SapiInterop.cs
- CancelEventArgs.cs
- BorderSidesEditor.cs
- ClipboardProcessor.cs
- TypeDependencyAttribute.cs
- View.cs
- InvariantComparer.cs
- IsolatedStorageFile.cs
- WinEventQueueItem.cs
- SoapServerMessage.cs
- Win32SafeHandles.cs
- Internal.cs
- ListViewItemMouseHoverEvent.cs
- StandardBindingImporter.cs
- UnsafeNativeMethods.cs
- WebEncodingValidator.cs
- PropertyEmitter.cs
- Int32KeyFrameCollection.cs
- QilGeneratorEnv.cs
- TextRangeEdit.cs
- SamlSecurityTokenAuthenticator.cs
- PopupRoot.cs
- LassoHelper.cs
- AxWrapperGen.cs
- TiffBitmapDecoder.cs
- InternalsVisibleToAttribute.cs
- FontSizeConverter.cs
- CommandDevice.cs
- UIElementParagraph.cs
- Renderer.cs
- ParallelEnumerable.cs
- JsonEncodingStreamWrapper.cs
- FileNotFoundException.cs
- Queue.cs
- TextOutput.cs
- tibetanshape.cs
- IEnumerable.cs
- XmlWrappingReader.cs
- ZoneMembershipCondition.cs
- GridViewPageEventArgs.cs
- ResourceKey.cs
- ErrorEventArgs.cs
- TargetControlTypeCache.cs
- SafeProcessHandle.cs
- PrintPreviewDialog.cs
- Preprocessor.cs
- LongPath.cs
- BezierSegment.cs
- InputReport.cs
- AnnotationDocumentPaginator.cs
- RemoteHelper.cs
- ApplicationTrust.cs
- TracePayload.cs
- SelectionItemProviderWrapper.cs
- QfeChecker.cs