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
- RectValueSerializer.cs
- BamlBinaryWriter.cs
- JulianCalendar.cs
- CheckedListBox.cs
- DBConcurrencyException.cs
- Visual3D.cs
- ComplexTypeEmitter.cs
- CollectionChangeEventArgs.cs
- ControlDesignerState.cs
- Utility.cs
- RegexRunnerFactory.cs
- CacheSection.cs
- SingleAnimation.cs
- TextContainer.cs
- GridViewUpdateEventArgs.cs
- XPathNodePointer.cs
- documentation.cs
- SimpleWorkerRequest.cs
- HtmlImage.cs
- StringAttributeCollection.cs
- EdmError.cs
- WebPartEditorCancelVerb.cs
- DbConnectionPoolIdentity.cs
- Win32.cs
- ProxyElement.cs
- SafeLocalMemHandle.cs
- ChangeConflicts.cs
- ToolboxComponentsCreatedEventArgs.cs
- _ListenerAsyncResult.cs
- FigureParagraph.cs
- EntityDataSourceContextDisposingEventArgs.cs
- Vars.cs
- HttpPostedFileWrapper.cs
- DrawingVisual.cs
- EmptyElement.cs
- ListViewCancelEventArgs.cs
- TriState.cs
- DictionarySectionHandler.cs
- ContractComponent.cs
- RenderData.cs
- ListViewDesigner.cs
- MsmqHostedTransportManager.cs
- SplitContainer.cs
- UserControlParser.cs
- LoadRetryAsyncResult.cs
- Size3DConverter.cs
- ContentValidator.cs
- CompoundFileDeflateTransform.cs
- connectionpool.cs
- DataContract.cs
- SqlDataSourceCustomCommandEditor.cs
- DataGridViewCellLinkedList.cs
- Compensate.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- CursorConverter.cs
- MaterializeFromAtom.cs
- BindingContext.cs
- FloatUtil.cs
- TextElementCollection.cs
- XamlStream.cs
- EndpointNotFoundException.cs
- ActionItem.cs
- GeneralTransform2DTo3D.cs
- RadioButton.cs
- ApplicationTrust.cs
- XmlSchemaParticle.cs
- BitmapCodecInfoInternal.cs
- WebPartDisplayMode.cs
- PersistenceTypeAttribute.cs
- DesignTimeTemplateParser.cs
- FixedFlowMap.cs
- EmptyEnumerator.cs
- JumpItem.cs
- UrlMappingsSection.cs
- SmtpFailedRecipientsException.cs
- GridViewDeleteEventArgs.cs
- ParseNumbers.cs
- AssemblyGen.cs
- InvariantComparer.cs
- Sql8ExpressionRewriter.cs
- UpdateCompiler.cs
- ScrollEvent.cs
- CapabilitiesSection.cs
- ButtonBaseAutomationPeer.cs
- NativeMethods.cs
- DriveInfo.cs
- CodeEventReferenceExpression.cs
- FrameDimension.cs
- FrameworkTextComposition.cs
- MimeWriter.cs
- Underline.cs
- SQLChars.cs
- Tracking.cs
- TrackingDataItem.cs
- BaseAsyncResult.cs
- Stacktrace.cs
- SimpleWebHandlerParser.cs
- ResourceSet.cs
- EntityReference.cs
- InstanceDescriptor.cs