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
- ToolStripItemRenderEventArgs.cs
- WebContext.cs
- SizeChangedInfo.cs
- UniqueConstraint.cs
- DataGridViewImageColumn.cs
- LogExtentCollection.cs
- DispatchOperation.cs
- ToolStripLabel.cs
- TemplateEditingFrame.cs
- TypeUsageBuilder.cs
- DbModificationClause.cs
- ProviderBase.cs
- StateDesigner.Layouts.cs
- DataGridView.cs
- UnsafePeerToPeerMethods.cs
- XmlSerializerSection.cs
- XPathMultyIterator.cs
- ComMethodElement.cs
- GenerateTemporaryAssemblyTask.cs
- Bezier.cs
- AnyReturnReader.cs
- OutputScopeManager.cs
- CompilationUtil.cs
- PositiveTimeSpanValidator.cs
- IsolatedStorage.cs
- ValidatorCollection.cs
- CombinedGeometry.cs
- ItemContainerProviderWrapper.cs
- CollectionViewSource.cs
- Compiler.cs
- DbDataReader.cs
- DockingAttribute.cs
- CodeConditionStatement.cs
- DecimalStorage.cs
- LineGeometry.cs
- AssemblyAttributesGoHere.cs
- Helper.cs
- EqualityComparer.cs
- ToolBarPanel.cs
- SystemMulticastIPAddressInformation.cs
- DmlSqlGenerator.cs
- SwitchLevelAttribute.cs
- StringDictionary.cs
- BrowserDefinitionCollection.cs
- XPathSelfQuery.cs
- ViewgenGatekeeper.cs
- AttributeCollection.cs
- SelectionPatternIdentifiers.cs
- Version.cs
- AjaxFrameworkAssemblyAttribute.cs
- ElementMarkupObject.cs
- ImageCollectionCodeDomSerializer.cs
- InlineCollection.cs
- XmlSchemaExternal.cs
- CFStream.cs
- DeploymentExceptionMapper.cs
- ControlBindingsConverter.cs
- DataSourceDesigner.cs
- Vector3DAnimationUsingKeyFrames.cs
- ChameleonKey.cs
- HtmlInputFile.cs
- TableRow.cs
- EntityDataSourceChangingEventArgs.cs
- AtomMaterializerLog.cs
- FlowPosition.cs
- RepeatBehavior.cs
- ASCIIEncoding.cs
- PieceDirectory.cs
- ProcessHostConfigUtils.cs
- FocusTracker.cs
- GeometryValueSerializer.cs
- WindowsPrincipal.cs
- CapabilitiesRule.cs
- SecurityState.cs
- MetadataSerializer.cs
- Substitution.cs
- TimeZoneNotFoundException.cs
- SecurityAttributeGenerationHelper.cs
- OrderPreservingSpoolingTask.cs
- SmtpFailedRecipientsException.cs
- TextServicesCompartmentContext.cs
- PageContentAsyncResult.cs
- FixUpCollection.cs
- DesignSurfaceServiceContainer.cs
- ConditionalAttribute.cs
- PartialArray.cs
- PropertyTab.cs
- FunctionImportElement.cs
- NotImplementedException.cs
- FileSecurity.cs
- DbTypeMap.cs
- DecoderReplacementFallback.cs
- DBConcurrencyException.cs
- AnnouncementEndpoint.cs
- SQLByte.cs
- XmlEntityReference.cs
- SubclassTypeValidatorAttribute.cs
- ProxyElement.cs
- ClientFormsAuthenticationCredentials.cs
- ShaderEffect.cs