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
- ValidationRule.cs
- ScaleTransform3D.cs
- UnsafeNativeMethodsCLR.cs
- VBCodeProvider.cs
- BezierSegment.cs
- HttpCookieCollection.cs
- CodeAccessSecurityEngine.cs
- ComponentChangingEvent.cs
- BoundField.cs
- ReversePositionQuery.cs
- IndexingContentUnit.cs
- Renderer.cs
- RuntimeConfigLKG.cs
- StylusPlugInCollection.cs
- XsdCachingReader.cs
- NetworkCredential.cs
- Statements.cs
- QilBinary.cs
- DetailsViewUpdateEventArgs.cs
- X509ImageLogo.cs
- WindowsSpinner.cs
- TrustLevel.cs
- PipelineModuleStepContainer.cs
- IntranetCredentialPolicy.cs
- returneventsaver.cs
- TextEditorSpelling.cs
- StringUtil.cs
- ClientSettingsSection.cs
- ObjectDataSourceView.cs
- MatrixStack.cs
- TerminatorSinks.cs
- CharStorage.cs
- XmlTextReaderImpl.cs
- ModelUIElement3D.cs
- StringResourceManager.cs
- SmtpNegotiateAuthenticationModule.cs
- SamlAttribute.cs
- Line.cs
- WorkflowQueuingService.cs
- Rules.cs
- initElementDictionary.cs
- Statements.cs
- InstancePersistenceCommand.cs
- SchemaImporterExtensionsSection.cs
- DataGridViewColumnCollection.cs
- SqlBulkCopyColumnMappingCollection.cs
- AxDesigner.cs
- CodeSubDirectory.cs
- GlyphCache.cs
- CompilerResults.cs
- TaskHelper.cs
- DynamicObjectAccessor.cs
- exports.cs
- InputReportEventArgs.cs
- Rotation3DAnimation.cs
- FileSystemEventArgs.cs
- Exceptions.cs
- InputBuffer.cs
- TraceSwitch.cs
- GraphicsPath.cs
- MarkupObject.cs
- DbDataReader.cs
- CompatibleComparer.cs
- AsyncInvokeContext.cs
- HtmlFormParameterReader.cs
- NetSectionGroup.cs
- TransportSecurityProtocol.cs
- RawStylusSystemGestureInputReport.cs
- SqlServer2KCompatibilityAnnotation.cs
- categoryentry.cs
- Stack.cs
- XmlWellformedWriter.cs
- FixedHyperLink.cs
- PlatformCulture.cs
- UndirectedGraph.cs
- ProcessHostFactoryHelper.cs
- OutputScopeManager.cs
- Adorner.cs
- TableRow.cs
- EnumMember.cs
- XPathScanner.cs
- COM2IDispatchConverter.cs
- ContainerUtilities.cs
- SchemaMerger.cs
- CacheChildrenQuery.cs
- PagesSection.cs
- Decimal.cs
- RecordsAffectedEventArgs.cs
- CodeExporter.cs
- TransformDescriptor.cs
- ConsoleTraceListener.cs
- DynamicDataExtensions.cs
- ExpressionVisitor.cs
- BaseTemplateCodeDomTreeGenerator.cs
- PreProcessInputEventArgs.cs
- FontDriver.cs
- DataListItemEventArgs.cs
- OverlappedContext.cs
- RuleInfoComparer.cs
- SqlBulkCopy.cs