Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SmiContext.cs
- DataControlImageButton.cs
- WMICapabilities.cs
- DataSetViewSchema.cs
- ProviderCollection.cs
- Library.cs
- SqlStatistics.cs
- DataBoundControlActionList.cs
- EncodingDataItem.cs
- SQLInt64.cs
- ToolStripItemCollection.cs
- MaterializeFromAtom.cs
- CheckBox.cs
- AssemblyFilter.cs
- ObjectParameterCollection.cs
- ExtensionSimplifierMarkupObject.cs
- EpmSourcePathSegment.cs
- ReadOnlyHierarchicalDataSource.cs
- NameValueConfigurationCollection.cs
- InstanceNormalEvent.cs
- SafeNativeMethods.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- NonceToken.cs
- FileCodeGroup.cs
- ObjectDataSourceStatusEventArgs.cs
- WinFormsSpinner.cs
- HttpListenerException.cs
- HtmlWindow.cs
- MobileTextWriter.cs
- SiteMap.cs
- DispatcherSynchronizationContext.cs
- RoleBoolean.cs
- DirectoryObjectSecurity.cs
- QueuePathEditor.cs
- AnnotationHighlightLayer.cs
- ImmutableObjectAttribute.cs
- ToolboxComponentsCreatingEventArgs.cs
- ForceCopyBuildProvider.cs
- Select.cs
- Switch.cs
- ResourceReferenceKeyNotFoundException.cs
- RectangleGeometry.cs
- XmlSchemaValidator.cs
- CatalogZoneBase.cs
- EmptyEnumerator.cs
- HostedController.cs
- Aes.cs
- activationcontext.cs
- NativeMethods.cs
- SqlReferenceCollection.cs
- OracleInternalConnection.cs
- CryptoProvider.cs
- RetrieveVirtualItemEventArgs.cs
- TextEndOfParagraph.cs
- CompositeFontFamily.cs
- DataObjectFieldAttribute.cs
- NameValueSectionHandler.cs
- QilUnary.cs
- RowParagraph.cs
- RIPEMD160Managed.cs
- SerializationInfo.cs
- UrlMappingCollection.cs
- ZoomPercentageConverter.cs
- PeerOutputChannel.cs
- ErrorWrapper.cs
- ComplexType.cs
- DPCustomTypeDescriptor.cs
- Rect3DConverter.cs
- DbParameterCollectionHelper.cs
- ServiceOperationListItemList.cs
- StyleModeStack.cs
- ExceptionValidationRule.cs
- GuidelineCollection.cs
- TextEditorSelection.cs
- WmiPutTraceRecord.cs
- GenericUriParser.cs
- AttributeCollection.cs
- EdmSchemaAttribute.cs
- ECDiffieHellmanCng.cs
- RichTextBoxAutomationPeer.cs
- SystemWebExtensionsSectionGroup.cs
- BrowserTree.cs
- IPGlobalProperties.cs
- SafeCryptoHandles.cs
- DataSourceDesigner.cs
- ResourceCollectionInfo.cs
- NotifyCollectionChangedEventArgs.cs
- TableDetailsCollection.cs
- DataConnectionHelper.cs
- Rfc4050KeyFormatter.cs
- XhtmlBasicLiteralTextAdapter.cs
- WebRequest.cs
- Signature.cs
- ResourceAttributes.cs
- EmbeddedMailObject.cs
- Debug.cs
- ParseElement.cs
- _CookieModule.cs
- EdmEntityTypeAttribute.cs
- DesignerAttributeInfo.cs