Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/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
- ConnectionPoint.cs
- SchemaObjectWriter.cs
- _ProxyChain.cs
- SafeRegistryKey.cs
- GradientStop.cs
- EventProperty.cs
- OpenFileDialog.cs
- StreamInfo.cs
- SocketInformation.cs
- DataPagerFieldCollection.cs
- Semaphore.cs
- ProtocolsConfigurationEntry.cs
- VisualStyleRenderer.cs
- ClientRuntimeConfig.cs
- PeoplePickerWrapper.cs
- XmlTextAttribute.cs
- CommonProperties.cs
- MULTI_QI.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EventPropertyMap.cs
- TextRangeAdaptor.cs
- TitleStyle.cs
- Stream.cs
- NumericUpDownAcceleration.cs
- SpellerInterop.cs
- Assert.cs
- HighContrastHelper.cs
- HttpEncoderUtility.cs
- TemplatedMailWebEventProvider.cs
- PointAnimation.cs
- ComponentEvent.cs
- GeneratedContractType.cs
- StorageModelBuildProvider.cs
- TextViewBase.cs
- Propagator.ExtentPlaceholderCreator.cs
- XhtmlConformanceSection.cs
- SelectionPatternIdentifiers.cs
- WebPartConnectionsConnectVerb.cs
- DataGridViewAccessibleObject.cs
- NativeMethods.cs
- ForceCopyBuildProvider.cs
- SrgsElementFactory.cs
- SqlConnectionPoolProviderInfo.cs
- DbConnectionFactory.cs
- Calendar.cs
- FontResourceCache.cs
- SerialStream.cs
- Crypto.cs
- Geometry.cs
- CursorConverter.cs
- AsyncStreamReader.cs
- XamlPathDataSerializer.cs
- AutomationTextAttribute.cs
- WindowsAltTab.cs
- CompilerCollection.cs
- SafeLocalAllocation.cs
- XmlFormatWriterGenerator.cs
- PersonalizationProviderHelper.cs
- UnsettableComboBox.cs
- DecoderReplacementFallback.cs
- CodeDomSerializationProvider.cs
- LocalFileSettingsProvider.cs
- TableProviderWrapper.cs
- RedirectionProxy.cs
- LocalBuilder.cs
- WebFaultClientMessageInspector.cs
- TemplatePropertyEntry.cs
- SoapReflectionImporter.cs
- Stylesheet.cs
- EntityDataSourceQueryBuilder.cs
- BitmapEffectGroup.cs
- hwndwrapper.cs
- HttpCachePolicyBase.cs
- AuthorizationSection.cs
- WindowsIPAddress.cs
- MembershipSection.cs
- RSAPKCS1SignatureDeformatter.cs
- WebPartCatalogCloseVerb.cs
- SqlProcedureAttribute.cs
- XmlSiteMapProvider.cs
- KoreanCalendar.cs
- TraceContextRecord.cs
- TransformDescriptor.cs
- ObjectStateEntry.cs
- DesignBindingValueUIHandler.cs
- PropertyToken.cs
- HtmlTable.cs
- DataGridRelationshipRow.cs
- UIElementCollection.cs
- StackBuilderSink.cs
- TemplateInstanceAttribute.cs
- FieldAccessException.cs
- PeerNameRegistration.cs
- HtmlAnchor.cs
- SmtpNetworkElement.cs
- QuadraticBezierSegment.cs
- XmlSchemaObject.cs
- _StreamFramer.cs
- TemplatePagerField.cs
- DbConvert.cs