Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 [....] // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- ImageFormat.cs
- propertytag.cs
- processwaithandle.cs
- SoapElementAttribute.cs
- _ProxyRegBlob.cs
- CommandValueSerializer.cs
- WebMessageEncodingBindingElement.cs
- Propagator.Evaluator.cs
- QilTargetType.cs
- PropertyDescriptorCollection.cs
- OperationAbortedException.cs
- HtmlInputText.cs
- XmlCharCheckingWriter.cs
- MultiView.cs
- MetadataArtifactLoaderFile.cs
- XmlStreamStore.cs
- WebPartMinimizeVerb.cs
- UriGenerator.cs
- HttpResponse.cs
- Win32.cs
- Repeater.cs
- SessionParameter.cs
- CompositionTarget.cs
- AppSettingsReader.cs
- DetailsViewPagerRow.cs
- MsmqIntegrationProcessProtocolHandler.cs
- XmlEncoding.cs
- Int64.cs
- CatalogZone.cs
- ListBoxItemWrapperAutomationPeer.cs
- VerificationAttribute.cs
- ProcessExitedException.cs
- SessionEndingCancelEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- MachineSettingsSection.cs
- IODescriptionAttribute.cs
- TableAutomationPeer.cs
- StateDesigner.cs
- _Semaphore.cs
- CharConverter.cs
- LayoutEvent.cs
- ComponentConverter.cs
- InputProviderSite.cs
- SoapAttributes.cs
- IIS7ConfigurationLoader.cs
- WebZone.cs
- QueryAccessibilityHelpEvent.cs
- ReversePositionQuery.cs
- TrackingMemoryStreamFactory.cs
- SelectionEditor.cs
- SafeNativeMethods.cs
- DrawToolTipEventArgs.cs
- WebPartUtil.cs
- ContextTokenTypeConverter.cs
- HtmlDocument.cs
- COM2TypeInfoProcessor.cs
- COM2PropertyDescriptor.cs
- ListViewUpdateEventArgs.cs
- UnionCodeGroup.cs
- FixedSchema.cs
- AttributeEmitter.cs
- BmpBitmapEncoder.cs
- SortedSet.cs
- Pointer.cs
- DayRenderEvent.cs
- UnescapedXmlDiagnosticData.cs
- XmlSchemaNotation.cs
- CursorConverter.cs
- safex509handles.cs
- OdbcRowUpdatingEvent.cs
- WebResourceAttribute.cs
- MenuCommand.cs
- CheckBoxStandardAdapter.cs
- QueryHandler.cs
- ColumnReorderedEventArgs.cs
- OleDragDropHandler.cs
- FontStyles.cs
- TransformProviderWrapper.cs
- ClassDataContract.cs
- DummyDataSource.cs
- MulticastOption.cs
- Visual.cs
- AutomationElement.cs
- TextPointerBase.cs
- RouteParser.cs
- DoWorkEventArgs.cs
- UIAgentAsyncEndRequest.cs
- BevelBitmapEffect.cs
- CodeGeneratorOptions.cs
- Light.cs
- CachedPathData.cs
- ApplicationCommands.cs
- Effect.cs
- WindowsFormsSynchronizationContext.cs
- UIPermission.cs
- SourceFileBuildProvider.cs
- CompositeScriptReferenceEventArgs.cs
- MeshGeometry3D.cs
- DBProviderConfigurationHandler.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs