Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1305600 / TextDecorationUnitValidation.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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- BamlTreeUpdater.cs
- unsafeIndexingFilterStream.cs
- _NegotiateClient.cs
- StrokeCollectionDefaultValueFactory.cs
- MediaElementAutomationPeer.cs
- AutomationIdentifierGuids.cs
- WorkflowApplicationTerminatedException.cs
- ConstructorNeedsTagAttribute.cs
- SecurityDocument.cs
- PrivilegeNotHeldException.cs
- ExpandCollapseProviderWrapper.cs
- Cursors.cs
- XPathNavigatorReader.cs
- BuildProvider.cs
- WebPartCatalogAddVerb.cs
- WebExceptionStatus.cs
- ValueExpressions.cs
- Stopwatch.cs
- Mappings.cs
- StringOutput.cs
- PluralizationService.cs
- ConfigurationPropertyAttribute.cs
- RedirectionProxy.cs
- XpsS0ValidatingLoader.cs
- WaitHandle.cs
- Cloud.cs
- HttpResponseHeader.cs
- AdapterUtil.cs
- SurrogateEncoder.cs
- PeerApplication.cs
- NumericUpDown.cs
- FileEnumerator.cs
- KnownTypesHelper.cs
- Preprocessor.cs
- BitmapPalettes.cs
- SecurityTokenSerializer.cs
- Queue.cs
- LambdaCompiler.Generated.cs
- XmlNodeWriter.cs
- Content.cs
- EntityDataSource.cs
- TextTrailingWordEllipsis.cs
- DomainUpDown.cs
- RenderData.cs
- CompiledRegexRunnerFactory.cs
- WebPartCollection.cs
- NotSupportedException.cs
- RectConverter.cs
- StructuredTypeEmitter.cs
- initElementDictionary.cs
- Util.cs
- ClientType.cs
- ProbeDuplex11AsyncResult.cs
- InheritedPropertyChangedEventArgs.cs
- MaterialGroup.cs
- TdsRecordBufferSetter.cs
- ContentValidator.cs
- FormatterServices.cs
- ListViewGroupItemCollection.cs
- FrameAutomationPeer.cs
- NetCodeGroup.cs
- CatalogZone.cs
- WorkflowRuntimeServiceElement.cs
- OleDbRowUpdatingEvent.cs
- CounterCreationDataCollection.cs
- ErrorHandlerFaultInfo.cs
- arabicshape.cs
- WorkflowDebuggerSteppingAttribute.cs
- XmlQueryType.cs
- Listbox.cs
- CreateUserWizardStep.cs
- HttpHostedTransportConfiguration.cs
- WindowsStatusBar.cs
- PriorityItem.cs
- XmlChildEnumerator.cs
- ExceptionValidationRule.cs
- Image.cs
- ObjectStateManagerMetadata.cs
- DockAndAnchorLayout.cs
- RectangleConverter.cs
- SerialPort.cs
- StrokeFIndices.cs
- Trace.cs
- mactripleDES.cs
- PreloadHost.cs
- MarshalByRefObject.cs
- GeometryGroup.cs
- FontStyle.cs
- CFGGrammar.cs
- SortKey.cs
- ReturnType.cs
- ToolStripOverflow.cs
- WmlPageAdapter.cs
- UnsafeNativeMethodsCLR.cs
- RuntimeArgumentHandle.cs
- BitmapDecoder.cs
- XPathException.cs
- InstanceLockLostException.cs
- UxThemeWrapper.cs
- EditorBrowsableAttribute.cs