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
- ToolStripRendererSwitcher.cs
- RootNamespaceAttribute.cs
- SystemException.cs
- ObjectQuery_EntitySqlExtensions.cs
- EdmEntityTypeAttribute.cs
- Point3DCollection.cs
- TracePayload.cs
- TextRangeProviderWrapper.cs
- ActivationArguments.cs
- DocumentCollection.cs
- GeometryModel3D.cs
- DesignerRegion.cs
- PersonalizableAttribute.cs
- TypedAsyncResult.cs
- ListSortDescription.cs
- FormViewUpdatedEventArgs.cs
- TableStyle.cs
- ContourSegment.cs
- WebConvert.cs
- Registry.cs
- EndpointConfigContainer.cs
- CodeArrayCreateExpression.cs
- ContextQuery.cs
- XmlSerializerNamespaces.cs
- ComMethodElement.cs
- ApplicationServiceManager.cs
- IntSumAggregationOperator.cs
- ContextStack.cs
- SafeHandles.cs
- MemoryMappedViewAccessor.cs
- LoginUtil.cs
- DataList.cs
- StorageBasedPackageProperties.cs
- TimerExtension.cs
- UnsettableComboBox.cs
- Int16AnimationBase.cs
- XmlSchemaElement.cs
- ImageSourceConverter.cs
- NullableDecimalMinMaxAggregationOperator.cs
- ProfessionalColorTable.cs
- FixedSOMFixedBlock.cs
- WebPartConnectionsCancelEventArgs.cs
- RIPEMD160.cs
- DependencyObjectPropertyDescriptor.cs
- DesignerLoader.cs
- HttpConfigurationContext.cs
- SecurityContext.cs
- ProfileParameter.cs
- DecryptRequest.cs
- Cursor.cs
- DataServiceQuery.cs
- Stacktrace.cs
- XPathNodeList.cs
- HealthMonitoringSectionHelper.cs
- GlyphElement.cs
- CodeGeneratorOptions.cs
- ExpressionBinding.cs
- ProxyManager.cs
- TextTreeDeleteContentUndoUnit.cs
- SqlCommandBuilder.cs
- Transactions.cs
- DataReceivedEventArgs.cs
- ValidatedControlConverter.cs
- SecurityDescriptor.cs
- EventLogInformation.cs
- MultiByteCodec.cs
- SchemaMerger.cs
- XNodeNavigator.cs
- TitleStyle.cs
- CommonProperties.cs
- FileLoadException.cs
- MTConfigUtil.cs
- Translator.cs
- WebBrowserEvent.cs
- HtmlElementEventArgs.cs
- OrElse.cs
- StructuredTypeEmitter.cs
- TableLayoutSettingsTypeConverter.cs
- EntityType.cs
- Metadata.cs
- SqlException.cs
- BindingRestrictions.cs
- ListContractAdapter.cs
- Point3DCollectionValueSerializer.cs
- DataGridTextBox.cs
- ContentHostHelper.cs
- TraceEventCache.cs
- DetailsViewRowCollection.cs
- XPathDocumentBuilder.cs
- MsmqTransportBindingElement.cs
- VisualState.cs
- MultiplexingFormatMapping.cs
- OutKeywords.cs
- TextPointer.cs
- DbConnectionFactory.cs
- ServiceHttpModule.cs
- DataGridRowDetailsEventArgs.cs
- SoapReflector.cs
- NullableLongAverageAggregationOperator.cs
- XmlWrappingWriter.cs