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
- TailCallAnalyzer.cs
- ConfigXmlCDataSection.cs
- ZeroOpNode.cs
- MultiAsyncResult.cs
- PropertyCondition.cs
- ModelItemDictionaryImpl.cs
- XpsDocumentEvent.cs
- AutomationPatternInfo.cs
- ChangeBlockUndoRecord.cs
- RewritingSimplifier.cs
- LinkUtilities.cs
- SetStateEventArgs.cs
- ComPlusServiceHost.cs
- QilReference.cs
- ProxyGenerationError.cs
- SqlNotificationRequest.cs
- BaseCollection.cs
- TextStore.cs
- VariableElement.cs
- TimeSpanMinutesConverter.cs
- PackUriHelper.cs
- CollectionConverter.cs
- BrowserTree.cs
- WmlFormAdapter.cs
- DependencySource.cs
- SqlUserDefinedAggregateAttribute.cs
- ContainerUIElement3D.cs
- DelegatingTypeDescriptionProvider.cs
- LinkClickEvent.cs
- EmissiveMaterial.cs
- ControlDesigner.cs
- WindowsFormsLinkLabel.cs
- FileLoadException.cs
- UTF8Encoding.cs
- InputProcessorProfiles.cs
- TextRange.cs
- XmlElementAttribute.cs
- SimpleHandlerFactory.cs
- LinkedList.cs
- XmlSchemaExternal.cs
- StrokeCollectionDefaultValueFactory.cs
- Int32EqualityComparer.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Brushes.cs
- MappingSource.cs
- EncodingDataItem.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- WindowsScroll.cs
- HtmlButton.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Button.cs
- WebPartAddingEventArgs.cs
- XmlCharacterData.cs
- SendActivityDesignerTheme.cs
- CompilerTypeWithParams.cs
- Effect.cs
- WebPartVerbsEventArgs.cs
- uribuilder.cs
- DeferredElementTreeState.cs
- ScrollChangedEventArgs.cs
- XmlIgnoreAttribute.cs
- ConfigXmlDocument.cs
- FlowDocumentReaderAutomationPeer.cs
- CachedRequestParams.cs
- WebBrowserDocumentCompletedEventHandler.cs
- Repeater.cs
- ValidationErrorCollection.cs
- DateTimeConverter.cs
- SerialPinChanges.cs
- storepermission.cs
- QfeChecker.cs
- HMACMD5.cs
- XmlNodeList.cs
- SeverityFilter.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- FlowDocumentPaginator.cs
- Persist.cs
- InternalDispatchObject.cs
- ClientSession.cs
- ContainerAction.cs
- ListViewTableCell.cs
- RowToFieldTransformer.cs
- DetailsViewUpdateEventArgs.cs
- MemberPath.cs
- Boolean.cs
- RenderDataDrawingContext.cs
- SQLByteStorage.cs
- Helper.cs
- ToolBarOverflowPanel.cs
- MachineKeySection.cs
- OdbcConnectionHandle.cs
- VisualStyleRenderer.cs
- ChannelSinkStacks.cs
- EditorAttribute.cs
- ProgressChangedEventArgs.cs
- Hex.cs
- ConfigUtil.cs
- QilChoice.cs
- MemberAccessException.cs
- PropertyKey.cs