Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1 / AlignmentXValidation.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 IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // 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 IsAlignmentXValid(object valueObject) { AlignmentX value = (AlignmentX) valueObject; return (value == AlignmentX.Left) || (value == AlignmentX.Center) || (value == AlignmentX.Right); } } } // 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
- DataGridViewRowStateChangedEventArgs.cs
- WebEvents.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SecurityException.cs
- ProcessRequestAsyncResult.cs
- SqlHelper.cs
- TableRow.cs
- DropSource.cs
- ResourceType.cs
- StyleHelper.cs
- UriTemplateQueryValue.cs
- ToolStripStatusLabel.cs
- ServiceModelDictionary.cs
- ToolBar.cs
- VideoDrawing.cs
- MenuRendererClassic.cs
- ClusterUtils.cs
- ProgressBar.cs
- ListControl.cs
- TemplatePropertyEntry.cs
- SpeechAudioFormatInfo.cs
- RecognizedWordUnit.cs
- HeaderCollection.cs
- TextFragmentEngine.cs
- xdrvalidator.cs
- VectorAnimation.cs
- TcpStreams.cs
- AppSettingsExpressionBuilder.cs
- TextBox.cs
- HttpContext.cs
- PerformanceCounterPermission.cs
- DragEvent.cs
- CanonicalizationDriver.cs
- TransactionTraceIdentifier.cs
- ImageMapEventArgs.cs
- StyleSheetComponentEditor.cs
- NetStream.cs
- CaseInsensitiveHashCodeProvider.cs
- PopOutPanel.cs
- FormViewModeEventArgs.cs
- TableLayoutSettings.cs
- IncomingWebResponseContext.cs
- SelectionUIService.cs
- GeometryValueSerializer.cs
- XPathSelfQuery.cs
- categoryentry.cs
- EventPrivateKey.cs
- BasicCellRelation.cs
- DataQuery.cs
- TagMapCollection.cs
- GeometryGroup.cs
- ReferenceTypeElement.cs
- ClientTarget.cs
- Vector3DAnimationBase.cs
- FunctionDetailsReader.cs
- MetadataPropertyAttribute.cs
- HitTestParameters3D.cs
- RectAnimationBase.cs
- TableCell.cs
- ToolStripStatusLabel.cs
- TemplateControl.cs
- SurrogateEncoder.cs
- Application.cs
- MessageContractMemberAttribute.cs
- ComponentCollection.cs
- Propagator.cs
- PlatformNotSupportedException.cs
- ToolStripItemTextRenderEventArgs.cs
- ProfileGroupSettings.cs
- PipelineComponent.cs
- XmlAnyElementAttribute.cs
- SoapElementAttribute.cs
- HtmlLink.cs
- SqlMethodCallConverter.cs
- ScriptResourceInfo.cs
- documentsequencetextcontainer.cs
- InvalidWorkflowException.cs
- UpdateDelegates.Generated.cs
- TextContainerChangedEventArgs.cs
- DataMisalignedException.cs
- BamlBinaryReader.cs
- MailWriter.cs
- ViewStateChangedEventArgs.cs
- BinHexEncoding.cs
- SchemaTableColumn.cs
- DataList.cs
- SoapAttributeAttribute.cs
- Schema.cs
- SecurityTraceRecordHelper.cs
- SoapFault.cs
- XMLSyntaxException.cs
- GradientStop.cs
- SmtpCommands.cs
- ModuleBuilderData.cs
- ListViewDeletedEventArgs.cs
- StreamGeometryContext.cs
- SortedList.cs
- PolicyException.cs
- CodeAccessPermission.cs
- RegexStringValidator.cs