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
- WmpBitmapDecoder.cs
- StringFormat.cs
- XmlWrappingReader.cs
- AsymmetricSignatureFormatter.cs
- ValidationErrorCollection.cs
- XmlDictionaryWriter.cs
- ModifierKeysConverter.cs
- SHA384Managed.cs
- DayRenderEvent.cs
- XmlQueryRuntime.cs
- cryptoapiTransform.cs
- MonthChangedEventArgs.cs
- DynamicControlParameter.cs
- ObjectDataSourceDisposingEventArgs.cs
- FactoryRecord.cs
- HttpConfigurationSystem.cs
- ConfigXmlElement.cs
- HtmlProps.cs
- PropertyPath.cs
- AnnotationResource.cs
- X509CertificateValidator.cs
- XmlSchemaInferenceException.cs
- PrintController.cs
- Tablet.cs
- DataKeyArray.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ObjectSet.cs
- XNodeNavigator.cs
- AppearanceEditorPart.cs
- XmlCodeExporter.cs
- DataGridViewTextBoxCell.cs
- XmlDataLoader.cs
- XPathNodeList.cs
- TemplateComponentConnector.cs
- InkCanvasSelectionAdorner.cs
- Point.cs
- PolicyManager.cs
- XmlLinkedNode.cs
- tibetanshape.cs
- FusionWrap.cs
- WindowsFormsLinkLabel.cs
- WorkflowServiceBehavior.cs
- RichTextBox.cs
- PropertyEntry.cs
- SecurityBindingElement.cs
- XComponentModel.cs
- RawAppCommandInputReport.cs
- FacetDescription.cs
- ClockGroup.cs
- XPathNodeHelper.cs
- MSAAEventDispatcher.cs
- ToolStripPanelCell.cs
- CompilerParameters.cs
- InputGestureCollection.cs
- MimeXmlReflector.cs
- NativeMethodsCLR.cs
- ParagraphVisual.cs
- OdbcStatementHandle.cs
- PaperSource.cs
- ClientUtils.cs
- HelpHtmlBuilder.cs
- TypeUsage.cs
- Int32Converter.cs
- XmlAggregates.cs
- HttpsChannelListener.cs
- XmlRawWriterWrapper.cs
- TransformPattern.cs
- SqlFlattener.cs
- AutomationElement.cs
- Label.cs
- CompensationDesigner.cs
- SqlConnectionManager.cs
- PropertyPathWorker.cs
- ObjectDataSourceStatusEventArgs.cs
- ReadWriteObjectLock.cs
- ProcessHostConfigUtils.cs
- DataGridTablesFactory.cs
- CompositionTarget.cs
- HyperLinkField.cs
- ProgressBarBrushConverter.cs
- Geometry.cs
- HtmlMeta.cs
- RemoteWebConfigurationHostServer.cs
- ManagementNamedValueCollection.cs
- ReferencedAssembly.cs
- __ConsoleStream.cs
- EventManager.cs
- DataGridTable.cs
- HijriCalendar.cs
- XmlWrappingReader.cs
- XmlExceptionHelper.cs
- PrtCap_Public.cs
- WsatTransactionHeader.cs
- PasswordBox.cs
- XmlProcessingInstruction.cs
- elementinformation.cs
- XmlSchemaValidationException.cs
- ArrayEditor.cs
- DocumentSchemaValidator.cs
- BooleanProjectedSlot.cs