Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / PenLineJoinValidation.cs / 1 / PenLineJoinValidation.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 IsPenLineJoinValid(object valueObject)
{
PenLineJoin value = (PenLineJoin) valueObject;
return (value == PenLineJoin.Miter) ||
(value == PenLineJoin.Bevel) ||
(value == PenLineJoin.Round);
}
}
}
// 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 IsPenLineJoinValid(object valueObject)
{
PenLineJoin value = (PenLineJoin) valueObject;
return (value == PenLineJoin.Miter) ||
(value == PenLineJoin.Bevel) ||
(value == PenLineJoin.Round);
}
}
}
// 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
- CustomBinding.cs
- XmlSchemaGroup.cs
- IdentityManager.cs
- EmptyEnumerable.cs
- LayoutUtils.cs
- MetadataException.cs
- WindowsListViewItem.cs
- URLIdentityPermission.cs
- EntityCommandExecutionException.cs
- IsolatedStorageFile.cs
- HttpConfigurationContext.cs
- ListViewUpdatedEventArgs.cs
- EventListenerClientSide.cs
- TreeSet.cs
- SoapTypeAttribute.cs
- AppDomainManager.cs
- InstanceDataCollectionCollection.cs
- ButtonBaseAdapter.cs
- Win32.cs
- EncodingNLS.cs
- DefaultTextStoreTextComposition.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- AccessibleObject.cs
- StylusButtonCollection.cs
- UserControlAutomationPeer.cs
- WizardPanel.cs
- CodeTypeReferenceExpression.cs
- MarkupCompilePass1.cs
- Mapping.cs
- SharedUtils.cs
- DeclaredTypeValidatorAttribute.cs
- RuleConditionDialog.Designer.cs
- VSWCFServiceContractGenerator.cs
- xmlfixedPageInfo.cs
- DataGridColumnCollection.cs
- GenericTypeParameterBuilder.cs
- FontClient.cs
- FileSystemWatcher.cs
- DataViewManager.cs
- SecurityValidationBehavior.cs
- TextChangedEventArgs.cs
- RegistryKey.cs
- TriggerCollection.cs
- WebServiceEnumData.cs
- JsonFormatReaderGenerator.cs
- BindingExpression.cs
- String.cs
- IntegerValidatorAttribute.cs
- CodeObject.cs
- HttpCapabilitiesSectionHandler.cs
- WorkflowDesigner.cs
- EditorZoneDesigner.cs
- RoutedUICommand.cs
- XsdBuildProvider.cs
- StackSpiller.Temps.cs
- TableRow.cs
- TemplateXamlParser.cs
- EntityCommandDefinition.cs
- ProcessHostMapPath.cs
- TreeViewItemAutomationPeer.cs
- MD5HashHelper.cs
- XPathDescendantIterator.cs
- SmtpReplyReader.cs
- ReflectionServiceProvider.cs
- IListConverters.cs
- ObjectViewEntityCollectionData.cs
- Asn1IntegerConverter.cs
- CuspData.cs
- BuildProvider.cs
- Thread.cs
- ClassValidator.cs
- Rectangle.cs
- SpanIndex.cs
- ItemAutomationPeer.cs
- Exception.cs
- LoadGrammarCompletedEventArgs.cs
- CapiNative.cs
- BitmapEffect.cs
- CustomWebEventKey.cs
- FileCodeGroup.cs
- QilNode.cs
- HttpRequestBase.cs
- InvalidPipelineStoreException.cs
- PropertyFilterAttribute.cs
- ResponseStream.cs
- XmlImplementation.cs
- PassportAuthentication.cs
- MatrixAnimationUsingPath.cs
- GridViewEditEventArgs.cs
- StorageAssociationSetMapping.cs
- HostedHttpContext.cs
- FormViewRow.cs
- AnnotationDocumentPaginator.cs
- PointLightBase.cs
- ConfigurationStrings.cs
- counter.cs
- ValueUnavailableException.cs
- EventEntry.cs
- TextEndOfParagraph.cs
- BlurBitmapEffect.cs