Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1305600 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- 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
- CompilationUtil.cs
- GroupBoxDesigner.cs
- FixedFindEngine.cs
- ImpersonationContext.cs
- SiteMapPath.cs
- FormParameter.cs
- SortedSetDebugView.cs
- WinFormsSecurity.cs
- DirectionalLight.cs
- DesignerUtility.cs
- Bitmap.cs
- ModuleBuilder.cs
- DataGridBoundColumn.cs
- SqlIdentifier.cs
- KeyNotFoundException.cs
- InstalledFontCollection.cs
- PingReply.cs
- SecurityTokenProvider.cs
- ImageCreator.cs
- TraceContextEventArgs.cs
- BitmapFrameDecode.cs
- Int64.cs
- TimeSpanOrInfiniteConverter.cs
- ChannelServices.cs
- MetadataArtifactLoaderCompositeResource.cs
- Transform3DCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- PrePrepareMethodAttribute.cs
- IteratorFilter.cs
- LinkArea.cs
- WebContentFormatHelper.cs
- QueryContinueDragEvent.cs
- DataPagerFieldCommandEventArgs.cs
- CrossSiteScriptingValidation.cs
- StateRuntime.cs
- HttpHeaderCollection.cs
- KeyEventArgs.cs
- DesignerActionItemCollection.cs
- AtomEntry.cs
- IxmlLineInfo.cs
- SamlDelegatingWriter.cs
- FamilyMap.cs
- TerminatorSinks.cs
- FontEmbeddingManager.cs
- SafeArchiveContext.cs
- VScrollProperties.cs
- SystemResourceKey.cs
- HttpWebRequestElement.cs
- CommandBindingCollection.cs
- PropertyOverridesTypeEditor.cs
- WeakHashtable.cs
- QueryOutputWriterV1.cs
- HttpRequestCacheValidator.cs
- CompiledRegexRunner.cs
- ControlBuilder.cs
- Win32Native.cs
- unsafenativemethodstextservices.cs
- Grant.cs
- Group.cs
- ClientUtils.cs
- SmiContextFactory.cs
- BeginStoryboard.cs
- StringBlob.cs
- NodeInfo.cs
- SqlClientMetaDataCollectionNames.cs
- MetadataArtifactLoader.cs
- Size3D.cs
- ClientBuildManagerCallback.cs
- ByteFacetDescriptionElement.cs
- ResourceCodeDomSerializer.cs
- InputElement.cs
- AsymmetricKeyExchangeDeformatter.cs
- CodeAccessPermission.cs
- DateTimeOffsetConverter.cs
- RoleManagerModule.cs
- PeerNearMe.cs
- AppDomainProtocolHandler.cs
- wgx_commands.cs
- XmlTextReaderImplHelpers.cs
- BitmapEffectrendercontext.cs
- FontClient.cs
- OleDbParameter.cs
- TextContainerChangedEventArgs.cs
- AttributeCollection.cs
- NumberFormatter.cs
- SortedDictionary.cs
- UpdateProgress.cs
- TraceInternal.cs
- ControlParser.cs
- UrlAuthFailedErrorFormatter.cs
- SystemFonts.cs
- WebPartUserCapability.cs
- XmlSchemaAttributeGroupRef.cs
- TableRow.cs
- ListChangedEventArgs.cs
- ScriptResourceInfo.cs
- ScrollChangedEventArgs.cs
- XmlSerializerAssemblyAttribute.cs
- Metafile.cs
- SynchronizationContext.cs